-
Notifications
You must be signed in to change notification settings - Fork 0
Home
The Package
class represents a package with metadata and compressed data. It provides methods for reading and creating packages.
-
const string Version
- The package version.
-
PackageMetadata Metadata
- Metadata of the package.
- See
Package.Create()
andPackage.Read()
-
Stream ToStream()
- Creates a stream out of the compressed package, ready for writing. Returns the pkg file as a Stream. -
byte[] ToBytes()
- Creates a byte array out of the compressed package, ready for writing. -
Package Read(Stream stream)
- Reads a pkg file represented as a Stream and returns aPackage
instance. -
Package Read(byte[] bytes)
- Reads a pkg file represented as a byte array and returns aPackage
instance. -
Package Read(string path)
- Reads a pkg file from a path and returns aPackage
instance. -
Package Create(byte[] data)
- Creates a newPackage
with data from an uncompressed byte array. -
Package Create(Stream data)
- Creates a newPackage
with data from an uncompressed stream. -
MemoryStream GetCompressedData()
- Gets the compressed data of thePackage
as a MemoryStream. -
MemoryStream GetUncompressedData()
- Uncompresses thePackage
's data and returns it as a MemoryStream.