GUPS.Assets.Editor The supported compression types of unity. None. The Lzma compression. The Lz4 compression. The Lz4HC compression. The Lzham compression. Represents a helper class for Lz compression. Compresses the given data. The type of the compression. The data to compress. Thrown when the compression type is not implemented. Thrown when the compression type is not supported. Implements a 32-bit CRC hash algorithm compatible with Zip and other formats. The default polynomial used in CRC32 calculations. The default seed used in CRC32 calculations. The default table used for CRC32 calculations with the default polynomial. The seed value used for initializing the CRC32 calculation. The table used for CRC32 calculations, initialized with the specified polynomial. The current hash value during the CRC32 calculation process. Initializes a new instance of the class using the default polynomial and seed. Initializes a new instance of the class with a specified polynomial and seed. The polynomial to use in calculations. The initial seed to start from. Calculates the CRC32 for a given buffer using the default seed and polynomial. The byte array buffer to calculate a CRC32 for. The CRC32 for the buffer. Calculates the CRC32 for a given buffer using a specified seed and the default polynomial. The initial seed to start from. The byte array buffer to calculate a CRC32 for. The CRC32 for the buffer. Calculates the CRC32 for a given buffer using a specified seed and polynomial. The polynomial to use in calculations. The initial seed to start from. The byte array buffer to calculate a CRC32 for. The CRC32 for the buffer. Calculates the CRC32 for given buffers using the default seed and polynomial. The byte array buffers to calculate a CRC32 for. The CRC32 for the buffer. Calculates the CRC32 for given buffers using a specified seed and the default polynomial. The initial seed to start from. The byte array buffers to calculate a CRC32 for. The CRC32 for the buffer. Calculates the CRC32 for given buffers using a specified seed and polynomial. The polynomial to use in calculations. The initial seed to start from. The byte array buffers to calculate a CRC32 for. The CRC32 for the buffer. Calculates the CRC32 for given LongArray buffers using the default seed and polynomial. The LongArray byte buffers to calculate a CRC32 for. The CRC32 for the buffer. Calculates the CRC32 for given LongArray buffers using a specified seed and the default polynomial. The initial seed to start from. The LongArray byte buffers to calculate a CRC32 for. The CRC32 for the buffer. Calculates the CRC32 for given LongArray buffers using a specified seed and polynomial. The polynomial to use in calculations. The initial seed to start from. The LongArray byte buffers to calculate a CRC32 for. The CRC32 for the buffer. Initializes a CRC32 calculation table for a given polynomial. The polynomial to calculate a table for. A UInt32 array table to be used in calculating a CRC32. Calculates an inverted CRC32 for a given buffer using a polynomial-derived table. The polynomial-derived table, such as from . The initial seed to start from. The byte array buffer to calculate the CRC32 from. The position within the buffer to start calculating from. The number of bytes within the buffer to read in calculating the CRC32. The bit-inverted CRC32 result. This hash is bit-inverted. Use other methods in this class or apply the bitwise NOT operator (~) on the result from this method. Calculates an inverted CRC32 for a given byte array using a polynomial-derived table. The polynomial-derived table, such as from . The initial seed to start from. The byte array buffer to calculate the CRC32 from. The position within the buffer to start calculating from. The number of bytes within the buffer to read in calculating the CRC32. The bit-inverted CRC32 result. This is the fast path for native arrays. It performs the same byte-at-a-time computation as the overload, but with direct array indexing instead of an interface call. This hash is bit-inverted. Calculates an inverted CRC32 for given buffers using a polynomial-derived table. The polynomial-derived table, such as from . The initial seed to start from. The byte array buffers to calculate the CRC32 from. The bit-inverted CRC32 result. This hash is bit-inverted. Use other methods in this class or apply the bitwise NOT operator (~) on the result from this method. Calculates an inverted CRC32 for a given LongArray buffer using a polynomial-derived table. The polynomial-derived table. The initial seed to start from. The LongArray byte buffer to calculate the CRC32 from. The position within the buffer to start calculating from. The number of bytes within the buffer to read in calculating the CRC32. The bit-inverted CRC32 result. Calculates an inverted CRC32 for given LongArray buffers using a polynomial-derived table. The polynomial-derived table. The initial seed to start from. The LongArray byte buffers to calculate the CRC32 from. The bit-inverted CRC32 result. Converts a UInt32 to a byte array, taking care to reverse the bytes on little-endian processors. The UInt32 to convert. The byte array containing the converted bytes. Binary Addressables catalog (catalog.bin), the BinaryStorageBuffer-based counterpart of the JSON . Bundle CRCs are patched in place: the reader walks the key/location graph to the serialized AssetBundleRequestOptions of the target bundle and overwrites its 4-byte CRC. Because the write is size-preserving and the catalog carries no global checksum, all other offsets stay valid and the file can be written back verbatim. See for the exact byte layout. Low-level view over the owning catalog buffer; patches mutate the buffer in place. The on-disk format backing this catalog. Always . Creates a binary catalog view over the given catalog.bin content and validates its version. The full catalog.bin content. Thrown when is null. Thrown when the data is not a supported binary catalog. Loads a binary catalog from a byte array. The full catalog.bin content. The loaded . Returns true if the given data looks like a supported binary catalog (usable for format sniffing). The candidate data. True if the version header matches; false otherwise. Reads the currently stored CRC of the given bundle file, without modifying the catalog. The bundle file name (matched against the entry internal ids). The stored CRC, or null if the bundle was not found in the catalog. Reads the currently stored bundle hash of the given bundle file, without modifying the catalog. The bundle file name (matched against the entry internal ids). The stored hash as a hex string (empty for local bundles), or null if the bundle was not found. Reads the currently stored bundle size of the given bundle file, without modifying the catalog. The bundle file name (matched against the entry internal ids). The stored bundle size, or null if the bundle was not found in the catalog. Replaces the CRC for a bundle file in the catalog, patching the value in place. The bundle file name. The old CRC. The new CRC. True if the CRC was replaced (or CRC checking is disabled for this bundle); false otherwise. Replaces the CRC and, when supplied, the cache hash and download size for a bundle file, patching the values in place. All writes are size-preserving, so every other offset in the catalog stays valid. The bundle file name. The old CRC. The new CRC. The new bundle hash (hex), or null/empty to leave the hash untouched. The new bundle size in bytes, or a negative value to leave the size untouched. True if the CRC was replaced (or CRC checking is disabled for this bundle); false otherwise. Persists the catalog back to disk as binary (catalog.bin). The destination file path. Walks the catalog key/location graph to the serialized AssetBundleRequestOptions of the bundle whose internal id file name matches and returns the absolute byte offset of that serialized object (the base of its SerializedData struct). The bundle file name to match. The absolute offset of the serialized request options, or -1 if the bundle was not found. Returns true if the ObjectTypeData at describes an AssetBundleRequestOptions (checked via the serialized type's class name). The absolute offset of the extra-data ObjectTypeData record. True if the extra-data object is an AssetBundleRequestOptions; false otherwise. Reads the 16 raw hash bytes referenced by the request options at . The absolute offset of the serialized request options. The 16 hash bytes, or null when the request options carry no hash. Patches the 16-byte hash of the request options in place, but only for bundles that already carry a non-zero hash (remote content). Local bundles share one deduplicated zero-hash blob and are left untouched. The absolute offset of the serialized request options. The new hash as a hex string. Returns true if every byte in is zero (or the array is null/empty). Formats a byte array as a lowercase hex string. Parses a hex string into a byte array of exactly bytes. Returns null when the input is not valid hex of the expected length. Canonical byte layout of the binary Addressables catalog (catalog.bin), mirrored from Unity's ContentCatalogData.ResourceLocator and AssetBundleRequestOptionsSerializationAdapter. The catalog is written by Unity's BinaryStorageBuffer: an append-only, hash-deduplicated blob of little-endian values. Every field below is an absolute byte offset into that blob, so the obfuscator can locate and patch a bundle CRC in place without re-serializing the whole catalog. Catalog data version understood by this reader (matches Unity's ContentCatalogData.kVersion). Sentinel value used by BinaryStorageBuffer to represent a null offset / missing value. High-bit flag marking a string blob as UTF-16 (Unicode) encoded rather than ASCII. High-bit flag marking a string offset as a chained dynamic (separator-split) string. Mask that strips / from an offset. Byte offset of the magic field inside the header. Byte offset of the version field inside the header. Byte offset of the keysOffset field inside the header. Size of a single KeyData element in bytes. Byte offset of the locationSetOffset field inside a KeyData element. Byte offset of the internalIdOffset field inside a location record. Byte offset of the extraDataOffset field inside a location record. Byte offset of the typeId field inside an ObjectTypeData record. Byte offset of the objectId field inside an ObjectTypeData record. Byte offset of the classId field inside a serialized Type record. Character separator used when a Type assembly/class name was written as a dynamic string. Class name suffix that identifies a serialized AssetBundleRequestOptions extra-data object. Byte offset of the hashId field inside the serialized AssetBundleRequestOptions. Byte offset of the crc field inside the serialized AssetBundleRequestOptions. Byte offset of the bundleSize field inside the serialized AssetBundleRequestOptions. Size in bytes of a serialized Hash128 value (four 32-bit words). Character separator used when the bundle internalId was written as a dynamic string. Minimal, managed read/patch view over a Unity BinaryStorageBuffer (the storage backing catalog.bin). Only the subset required to locate and update a bundle CRC is implemented: fixed-size value reads, length-prefixed arrays and the (Unicode/ASCII, optionally separator-chained) string decoder. Values are read little-endian, matching how BinaryStorageBuffer serializes raw memory on desktop/mobile build hosts. The reader operates directly on the owning byte buffer so in-place patches are reflected immediately. The raw catalog buffer. Patches () mutate this array in place. The raw catalog buffer this reader operates on. Creates a reader over the given catalog buffer. The full catalog.bin content. Thrown when is null. Reads a little-endian 32-bit signed integer at the given absolute byte offset. The absolute byte offset. The decoded value. Reads a little-endian 32-bit unsigned integer at the given absolute byte offset. The absolute byte offset. The decoded value. Overwrites the little-endian 32-bit unsigned integer at the given absolute byte offset. The write is size-preserving, so all other offsets in the buffer remain valid. The absolute byte offset. The value to store. Overwrites at the given absolute byte offset. The write is size-preserving, so all other offsets in the buffer remain valid (used to patch fixed-size values such as a Hash128). The absolute byte offset. The bytes to store. Reads raw bytes at the given absolute byte offset. The absolute byte offset. The number of bytes to read. A newly allocated array containing the requested bytes. Reads a length-prefixed uint[] array. The 4-byte byte-length prefix sits at - 4 and the elements start at , matching BinaryStorageBuffer.Writer.Write(T[]). The absolute offset of the first array element (as stored in the catalog). The decoded array, or an empty array when the offset is the null sentinel. Reads a string blob written by BinaryStorageBuffer, transparently handling the Unicode/ASCII encoding flag and separator-chained dynamic strings. The (possibly flagged) string offset. The separator used when the string was written dynamically, or '\0' for none. The decoded string, or null when the offset is the null sentinel. Decodes a non-chained string, choosing ASCII or Unicode based on . Reads the raw (length-prefixed) string bytes at the given offset and decodes them with the given encoding. Reconstructs a dynamic string that was split on and stored as a reverse-ordered chain of DynamicString { uint stringId, uint nextId } records. Validates that bytes starting at stay inside the buffer. Thrown when the range is out of bounds (corrupt / unexpected catalog). Loads the correct implementation for an Addressables catalog, transparently detecting whether it is the JSON (catalog.json) or binary (catalog.bin) format. Detection is driven by the file extension first and falls back to sniffing the content, so callers never have to know which format a project ships. The default binary catalog file name written by Addressables. The default JSON catalog file name written by Addressables. Loads a catalog from the given file, choosing the JSON or binary implementation automatically. The catalog file path. The loaded catalog. Thrown when is null or empty. Thrown when the file does not exist. Tries to load the catalog from a build directory, preferring the binary catalog and falling back to JSON. The directory that contains the catalog (e.g. the Addressables build path). The loaded catalog, or null if none was found. The resolved catalog file path, or null if none was found. True if a catalog was found and loaded; false otherwise. The on-disk format of an Addressables content catalog. The legacy text catalog (catalog.json), serialized via Unity's JsonUtility. The binary catalog (catalog.bin), serialized via Unity's BinaryStorageBuffer. Format-agnostic abstraction over an Addressables content catalog. Both the JSON catalog () and the binary catalog () implement this interface, so the obfuscator can update bundle CRCs without knowing which on-disk format is in use. Use to load the correct implementation. The on-disk format backing this catalog. Reads the currently stored CRC of the given bundle file. The bundle file name (matched against the catalog entry ids). The stored CRC, or null if the bundle was not found in the catalog. Reads the currently stored bundle hash of the given bundle file. The bundle file name (matched against the catalog entry ids). The stored hash string (empty for local bundles), or null if the bundle was not found. Reads the currently stored bundle size (in bytes) of the given bundle file. The bundle file name (matched against the catalog entry ids). The stored bundle size, or null if the bundle was not found in the catalog. Replaces the CRC for a bundle file in the catalog. The bundle file name. The old CRC. The new CRC. True if the CRC was replaced (or CRC checking is disabled for this bundle); false otherwise. Replaces the CRC and, when supplied, the cache hash and download size for a bundle file in the catalog. The hash is only applied when the bundle already carries a non-empty hash (i.e. remote content); local bundles keep their empty hash. This keeps returning clients from serving a stale cached copy after the bundle content changed, while never corrupting the shared empty-hash storage of local bundles. The bundle file name. The old CRC. The new CRC. The new bundle hash, or null/empty to leave the hash untouched. The new bundle size in bytes, or a negative value to leave the size untouched. True if the CRC was replaced (or CRC checking is disabled for this bundle); false otherwise. Persists the catalog back to disk in its native format. The destination file path. Contains cache information to be used by the AssetBundleProvider Returns the CRC of the AssetBundle. Load a from a JSON string./> The json string to load from. The loaded . Save the to a JSON string. The JSON string. Used to indication how Assets are loaded from the AssetBundle on the first load request. Only load the requested Asset and Dependencies Load all assets inside the AssetBundle Internally named ContectCatalogData in Unity Addressables. Represents the JSON catalog (catalog.json). The on-disk format backing this catalog. Always . Not part of the serialized catalog (JsonUtility only serializes fields; System.Text.Json is told to ignore it). Data for the Addressables.ResourceManager.InstanceProvider initialization; Data for the Addressables.ResourceManager.InstanceProvider initialization; The list of resource provider data. Each entry will add an IResourceProvider to the Addressables.ResourceManager.ResourceProviders list. Reads the currently stored CRC of the given bundle file, without modifying the catalog. The bundle file name (matched against ). The stored CRC, or null if the bundle (or its request options) was not found. Reads the currently stored bundle hash of the given bundle file, without modifying the catalog. The bundle file name (matched against ). The stored hash string (empty for local bundles), or null if the bundle was not found. Reads the currently stored bundle size of the given bundle file, without modifying the catalog. The bundle file name (matched against ). The stored bundle size, or null if the bundle was not found in the catalog. Replace the CRC for a bundle file in the catalog. The bundle file name. The old CRC. The new CRC. True if the CRC was replaced; false otherwise. Replace the CRC and, when supplied, the cache hash and download size for a bundle file in the catalog. The bundle file name. The old CRC. The new CRC. The new bundle hash, or null/empty to leave the hash untouched. The new bundle size in bytes, or a negative value to leave the size untouched. True if the CRC was replaced (or CRC checking is disabled for this bundle); false otherwise. Locates the serialized of the bundle whose internal id file name matches and deserializes it, exposing the byte positions needed to patch it. The entry layout () is a flat array: [int32 entryCount] then one record per entry of 7 x int32 (InternalId index, ProviderIndex, DependencyKeyIndex, DepHash, DataIndex, PrimaryKey, ResourceType). The extra data () stores objects written by Unity's SerializationUtilities.WriteObjectToByteList(); for a [Serializable] AssetBundleRequestOptions the wire format at DataIndex is: [1 byte ObjectType=7][1 byte asm len][asm ASCII][1 byte class len][class ASCII] [4 byte JSON byte length][UTF-16LE JSON]. The bundle file name to match. The decoded extra data blob. The byte offset of the serialized object inside the extra data blob. The byte offset just past the class name (points at the 4-byte JSON length field). The byte offset of the first JSON payload byte. The JSON payload length in bytes. The deserialized request options, or null if the bundle (or its request options) was not found. Deserializes an from its JSON representation. The JSON string. The deserialized options. Serializes an to its JSON representation. The options to serialize. The JSON string. Load a from a JSON string. The json string to load from. The loaded . Save the to a JSON string. The JSON string. Persists the catalog back to disk as JSON (catalog.json). The destination file path. Represents a resource entry in the catalog, containing all relevant indices and metadata required for resource identification and management within the Addressables system. Gets or sets the index of the internal ID for this resource entry. Gets or sets the index of the provider associated with this resource entry. Gets or sets the index of the dependency key for this resource entry. Gets or sets the hash value representing the dependencies of this resource entry. Gets or sets the index of the extra data associated with this resource entry. Gets or sets the index of the primary key for this resource entry. Gets or sets the index of the resource type for this resource entry. Reads a 32-bit integer from a byte array at the specified offset. The byte array containing the data. The offset in the array to start reading from. The 32-bit integer value read from the array. Writes a 32-bit integer value into a byte array at the specified offset. The byte array to write the value into. The 32-bit integer value to write. The offset in the array to start writing at. The next offset position after writing the integer. Contains data used to construct and initialize objects at runtime. The id of the object. The type of the object (assembly and class name). The data used to initialize the object. Wrapper for serializing types for runtime. The assembly name. The class name. Helper class for byte arrays. Finds the nth occurrence of a byte array in another byte array. The byte array to search within. The byte array to find. The occurrence number to find (Starting at 1). The index of the nth occurrence of the needle in the haystack, or -1 if not found. Thrown when the haystack or needle is null. Thrown when the haystack or needle is empty. Thrown when the occurrence number is not positive. Returns true if refers to the bundle file , matching on the full last path segment rather than an arbitrary suffix. Catalog internal ids are stored as full paths using '/' (and occasionally '\') separators, so a plain EndsWith(fileName) would incorrectly match e.g. my_bundle.bundle for the query bundle.bundle. This helper only matches when is the complete final component, also treating the '#' used by Unity's prefix-encoded internal ids (m_InternalIdPrefixes) as a boundary. The catalog internal id (full path or prefix-encoded) to test. The bundle file name to match against the last path segment. True if the internal id's file name equals ; false otherwise. Represents the storage blocks information for a bundle file. The hash of the uncompressed data. Always filed with zeros only. The storage blocks represent information about the referenced files in the bundle. Instantiate a object. Used for reading. Instantiate a object using custom values. Read the data from the reader. The reader to read from. Write the data to the writer. The writer to write to. A storage block contains information about the compressed and uncompressed size of a block of data. A storage block has the max size of 128 KB (131072 Bytes). The uncompressed size of the block in bytes. The compressed size of the block in bytes. The flags of the storage block. Get if the block is compressed or not. Either None or Lz4HC Returns whether the block is compressed or not. Instantiates a new empty . Read from a reader to fill the values. Instantiates a new with the size of the block. Creates an uncompressed block info with no flags. The size of the block. Instantiates a new with the uncompressed and compressed size of the block and the flags. Reads the storage block from the reader. Writes the storage block to the writer. Get the string representation of the storage block. The string representation of the storage block. Flags for a storage block. A storage block can either be compressed or uncompressed and/or streamed or not streamed. No flags set. In binary: 0b00000000. Is compressed. In binary: 0b00111111. Is a streamed block. In binary: 0b01000000. Extension methods for . Extracts the compression type from the flags. The flags. The compression type. Gets whether the block is streamed. The flags. True if the block is streamed; otherwise, false. The storage block reader is used to read the raw storage block data from the storage blocks. The endian binary reader to read the storage blocks from. Instantiates a new with the reader. Read the storage block raw data and decompress it if necessary. The uncompressed returned block is maximal 128 KB (131072 Bytes). The storage block info to read the data for. The raw storage block data. Releases the resources. Write binary into storage blocks and compress them, if required. The endian binary writer to write the storage blocks to. The compression type to compress the storage blocks with. The current block to write to. The current byte offset in the block. The resulting storage block infos. Indicates if the object is disposed. Instantiates a new with the writer and compression type. Writes the resource binary to the storage blocks. When finished, call to get the storage blocks. The resource binary to write to the storage blocks. Writes the resource binary to the storage blocks. When finished, call to get the storage blocks. The resource binary to write to the storage blocks. Writes the resource binary to the storage blocks. When finished, call to get the storage blocks. The resource binary to write to the storage blocks. Writes a single resource stream to the storage blocks. When finished, call to get the storage blocks. The stream to write to the storage blocks. Write the current block to the writer, add the storage block info and reset the block. Returns the storage block infos and flushes the last block. Returns a list of all storage block infos. Releases the resources. Represents a unity bundle file. Contains the header information. Contains information about the storage blocks. Each resource in the bundle is stored over multiple storage blocks. Contains information about the resources in the bundle. Contains the resolved resources in the bundle. Read the bundle file data from the _Reader. Calculate the CRC32 of the bundle file. The CRC32 (UInt32). Read the bundle file data from the _Reader. Read the file infos from the _Reader. The reader to read from. The base position of the reader. Read the file info from the _Stream. The stream to read from. The size of the metadata. Thrown if the read metadata size doesn't match the expected size. Read the file data from the _Reader. The reader to read from. The base position of the reader. The size of the header. Get the resource binary with the _ResourcePath. The path of the resource inside the bundle. The binary of the resource. If the resource was not found returns null. Get the resource as stream with the _ResourcePath as stream. The path of the resource inside the bundle. The binary of the resource as stream. If the resource was not found returns null. Get all the resource infos with the file _Type. The type of the resource. All the resource infos with the file _Type. Replace the resource with the _ResourcePath with the _ResourceData. The path of the resource inside the bundle to replace. The new resource data. True if the resource is replaced, otherwise false. Write the bundle file data to the _Writer. Write the storage as bytes. The storage as bytes. Write the storage block infos as bytes. The storage block infos as bytes. Write the resource infos as bytes. The resource infos as bytes. Write the header as bytes. The header as bytes. The header requires the file size. So pre-calculate the file size. The size of the header. The size of the compressed metadata. The size of the storage. The calculated file size. Write the bundle file to the _Writer. The writer to write to. The header as bytes. The metadata as bytes. The storage as bytes. Version of a unity bundle file. Unknown Unknown Unknown Unknown Unknown Unknown Unknown Several 4-byte integers were upgraded to 8-byte integers in order to support files larger than 2 GB. This seems to be exactly the same as . Padding is added after blocks info, so files within asset bundles start on aligned boundaries. Introduced in 2020.3.34f1, 2021.3.2f1, 2022.1.1f1 so that Switch patching works appropriately.


This fix implies that loading newly generated AssetBundles will require using this new Unity editor/runtime combination. It is not backwards compatible.
Chinese encryption flag prior to 2020.3.34f1, 2021.3.2f1, 2022.1.1f1. Chinese encryption flag (presumeably) after 2020.3.34f1, 2021.3.2f1, 2022.1.1f1. The lowest 6 bits The 0x40 bit: The 0x80 bit: The 0x100 bit: The 0x200 bit: The header of the bundle file. The type of the unity bundle file. Only supporting UnityFS for now. The version of the bundle file. The unity version of the bundle file. The minimum unity revision of the bundle file. The whole size of the bundle file in bytes. The size of the compressed blocks info in bytes. The size of the uncompressed blocks info in bytes. The bundle file flags. Initializes a new instance of the class. Read the bundle file header from the reader. The reader to read from. Write the bundle file header to the writer. Contains the information about the resources of the bundle file. The file infos of the resources. Instantiates a new object. Used for reading. Instantiates a new object with the file infos. Used for writing. The file infos of the resources. Read the data from the reader. The reader to read from. Write the data to the writer. The writer to write to. Contains information about a file node. The file binary offset. The first file in the bundle has an offset of 0. The uncompressed size of the file in bytes. The flags of the file node. For example if the node is a directory or a file and/or deleted. The path or name of the node. Instantiates a new to read its values from the reader. Instantiates a new with the values provided. The file binary offset. The uncompressed size of the file in bytes. The flags of the file. The path or name of the file. Read the file node from the reader. Write the file node to the writer. Determines whether the specified object is equal to the current object. The object to compare with the current object. True if the specified object is equal to the current object; otherwise, false. Returns a hash code for the current object. A hash code for the current object. Returns a string that represents the current object. A string that represents the current object. The resource reader is used to read the raw decompressed resource data from the storage blocks. The storage block infos to read the resources from. The resource infos which are stored in the storage blocks. Instantiates a new with the storage block infos that contain the resources. The storage block infos to read the resources from. The resource to read from the storage blocks. The resources are stored inside the storage blocks. This method reads the resources from the storage blocks and returns them as a dictionary with the path to the raw resource data. The reader to read the storage blocks from. A map of resource path to the raw resource data. Extracts the resource bytes from the storage blocks. The storage block data to read the bytes from. The resource info to read the bytes from the storage blocks. An array of the resource bytes. Finds the block index and the summed block bytes for a given byte index. The storage block data to read the bytes from. The byte index to find the block index for. The found block index. The summed iterated block bytes. Releases the resources. Writes a list of resources to a writer as storage blocks. With optional compression. The writer to write the storage blocks to. The compression the storage blocks are compressed with. Indicates if the object is disposed. Instantiates a new with the writer and compression type. The writer to write the resources as storage blocks to. The compression type to compress the storage blocks with. Split the resource binaries into storage blocks and write them to the writer. The resource binaries to write to the writer. A list of storage block infos which contain the resources. Split the resource binaries into storage blocks and write them to the writer. The resource binaries to write to the writer. Each array is an own resource. A list of storage block infos which contain the resources. Release the resources. A flag to describe the type of the resource. Default flag. Is a directory. Is deleted. Is a serialized file. Extension methods for . Returns true if the flag is deleted. The flag to check. True if the flag is deleted; otherwise false. Returns true if the flag is a serialized file. The flag to check. The flag is a serialized file; otherwise false. The bundle file storage is used to store the resources of the bundle file. The compression type of the storage. The storage block infos of the storage. The resource infos of the storage. The resources of the storage. Maps the path to the raw resource binary. Instantiates a new with no compression. Use if you want to add custom resources. Instantiates a new with the compression type. Use if you want to add custom resources. The compression type of the storage. Instantiates a new with the storage block infos and the resource infos. Use if you want to read resources. The storage block infos of the storage. The resource infos of the storage. Reads the storage from a reader. The reader to read the storage from. Get the resource binary with the _ResourcePath. The path of the resource inside the bundle. The binary of the resource. If the resource was not found returns null. Replace the resource with the _ResourcePath with the _ResourceData. The resource inside the storage to replace. The new resource data. True if the resource is replaced, otherwise false. Writes the storage to a writer. The writer to write the storage to. Thrown if a resource is not found. This interface represents a resource addressed by Unity. It is readable and writable. Represents a serialized .assets file. The header of the assets file. The version is inside the header. The metadata of the assets file. The unity objects inside the assets file. Instantiate a new . Used to assign the file path and name. Read the assets file from a reader. The reader to read from. Return a list of objects int the asset file of type TObject. The type of object to return. A list of objects of type TObject. Write the assets file. Writes the objects in _ObjectData and returns the object infos. Returns if the writing succeded. Write the metadata to a stream and return it over _Metadata. Write the header to a stream and return it over _HeaderData. Get the hash code. The hash code. Compare if the other object is equal. The other object to compare to. True if the objects are equal; otherwise false. Version of a unity file. Added support for stripped objects. Refactoring of class id. Refactoring type data. Refactoring of shareable type tree data. Added flags for type trees nodes. Refactoring of serialized types. Added storing of type dependencies. Added support for large files. Represents an identifier for an extern file. The serialized version of the type. The buffered path, mostly empty. The file guid. The asset type. The file path. Instantiate a object used for reading. Required to get the version. Instantiate a object using custom values. Read the file identifier from the reader. The reader to read from. Write the file identifier to the writer. The writer to write to. Get the hash code. The hash code. Check if the object is equal to another object. The other object to compare to. True if the objects are equal; otherwise false. Header of the assets file. Size of the metadata in bytes. Whole file size in bytes. The assets file version. Byte offset for the objects. The endian of the byte data. Unkown. Unkown. Is from a bundle. Instantiate a new . Read the assets file header from the _Reader. The reader to read from. Write the assets file header to the _Writer. The writer to write to. Hashcode. Equals. To string. Metadata of the assets file. The assets file that this metadata belongs to. Version to read and write the metadata. The unity version of the assets file. The unity target platform of the assets file. If type tree is enabled, serialized types map their whole field/properties and dependencies, to allow comptibility between unity versions. Serialized types. Info about the serialized objects. List of objects need to be preloaded. List over the external file references. Refeactored serialized types. User informations that are always empty. Instantiate a new belonging to the given assets file. The assets file. Read the assets file metadata from the _Reader. The reader to read from. Write the assets file metadata to the _Writer. The writer to write to. Get the hash code. The hash code. Compare the object to another object. The other object to compare to. True if the objects are equal; otherwise false. A not categorized object. Just reads the data blob. All objects have a path id (is not unique!). The guid of the type this object belongs too. All data of the object. Read the object data from _Reader. Write the object data. Hashcode. Equals. Represents an unity editor extension. The origin prefab object. A internal unity prefab. Create an editor extension by parameter. Read the object data from _Reader. Write the object data. Iterface over a unity object. All objects have a unique path id in its file. The guid of the type this object belongs too. Write the object to a stream. Represents a unity mono script. The order of execution while runtime. The guid. The class name. The namespace. The assembly name. Create a monoscript by parameter. Read the objects data from _Reader. Update the mono scripts type. Write the object data. Hashcode. Equals. Represents a unity named object. The objects name. Create a named object by parameter. Read the objects data from _Reader. Write the object data. Hashcode. Equals. Reprensents the unity object. All objects have a unique path id in its file. The guid of the type this object belongs too. Flag over visibilty by camera. Create an object by parameter. Read the object data from _Reader. Write an object to _Writer. Hashcode. Equals. Pointer to another unity object. The file id. 0: The current read assets file. 1...n: External file id. The path id. Each object has a unique (in the file) path id. Is a reference or not. Read the object pointer data from _Reader. Write the object pointer. Information about an serialized object. The serialized version of the type. All objects have a unique path id in its file. The byte offsets for the objects data. Does not include the metadata data offset! The amount of bytes this objects consists of. The serialized type. The unity class id of the serialized type. The unique guid of the serialized type. Because there can be multiple custom serialized types sharing the same class ids (for example being of class MonoBehaviour). Create a object info directly by data. Create a object info, by passing the owning _AssetsFile, _AssetsFileMetadata, _Reader, to read data from. Write a object info belongign to _AssetsFileMetadata. Hashcode. Equals. To string. Reader of objects. The belonging assets file. The belonging object info. The build target, read form the metafiles. The object reader needs a endian reader, the assets file and the object info. The object reader needs a stream, endian, the assets file and the object info. Writer of an object. The belonging assets file. The build target, read form the metafiles. The object writer needs an endian writer and the assets file. The object writer needs a stream, endian and the assets file. Unity class id types. Maps to a object to be preloaded. The serialized version of the type. The file id. 0: The current read assets file. 1...n: External file id. The path id. Each object has a unique (in the file) path id. Create a script identifier by parameters. Create a script identifier, by passing the owning _AssetsFile, _AssetsFileMetadata, _Reader, to read data from. Write a script identifier. Hashcode. Equals. Common names used in Unity's serialized files. Mapping of string buffer index to string. Represents a serialized type with its dependencies. The type dependencies. Instantiate a by parameters Instantiate a for reading. Read the type dependencies. The reader to read from. Write the type dependencies. The writer to write to. Get the hash code. The hash code. Compare the object to another object. The other object to compare to. True if the objects are equal; otherwise false. Represents a type of the unity objects. The type is the newer refactored version. The type tree is enabled. Unity class id - Can be anything from GameObject, GameObject, MonoBehaviour, MonoScript, ... Is stripped outside (older unity version I think). Index to a script type. A Hash128 Guid. Representing the newer used script guid instead of type guid. A Hash128 Guid. Representing the type guid. Stores the properties of this type. Stores the properties names, types, etc. Instantiates a with custom values. Instantiates a used for reading. Read the type from the reader. The reader to read from. Read the dependencies of the type. The reader to read from. Write the type to the writer. The writer to write to. Write the dependencies of the type. The writer to write to. Hashcode. Equals. A reference type for a serializeable C# type. These are used for fields with the [SerializeReference] attribute. The name of the class. The namespace of the class. The assembly name of the class. The full name of the class. Instantiate a by parameters. Instantiate a for reading. Read the type reference. The reader to read from. Write the type reference. The writer to write to. Get the hash code. The hash code. Compare the object to another object. The other object to compare to. True if the objects are equal; otherwise false. Putting this mask in a transfer will make the variable be hidden in the property editor. Makes a variable not editable in the property editor. There are 3 types of PPtrs: , default (weak pointer) a Strong PPtr forces the referenced object to be cloned. A Weak PPtr doesnt clone the referenced object, but if the referenced object is being cloned anyway (eg. If another (strong) pptr references this object) this PPtr will be remapped to the cloned object. If an object referenced by a WeakPPtr is not cloned, it will stay the same when duplicating and cloning, but be NULLed when templating. Makes an integer variable appear as a checkbox in the editor. Show in simplified editor For when the options of a serializer tell you to serialize debug properties (). All debug properties have to be marked . Debug properties are shown in expert mode in the inspector but are not serialized normally. Ignore this property when reading or writing .meta files When reading meta files and this property is not present, read array entry name instead (for backwards compatibility). When writing YAML Files, uses the flow mapping style (all properties in one line, with "{}"). Tells SerializedProperty to generate bitwise difference information for this field. Represents a type tree in a serialized file with nodes. The type nodes. Contains the custom type names. Reads the type tree from a reader. The reader to read from. Writes the type tree to a writer. The writer to write to. Get the string representation of the type tree. The string representation of the type tree. Represents a node in the type tree of a serialized file. Field type version, starts with 1 and is incremented after the type information has been significantly updated in a new release. Equal to serializedVersion in Yaml format files Depth of current type relative to root Array flag, set to 1 if type is "Array" or "TypelessData". Type offset in Name offset in Name of the data type. This can be the name of any substructure or a static predefined type. Name of the field. Size of the data value in bytes, e.g. 4 for int. -1 means that there is an array somewhere inside its hierarchy
Note: The padding for the alignment is not included in the size.
Index of the field that is unique within a tree.
Normally starts with 0 and is incremented with each additional field.
Metaflags of the field The hash of the type of the field. Instantiate a new for reading. Instantiate a new by parameters. Instantiate a new by parameters. Read the type tree node. The reader to read from. Write the type tree node. The writer to write to. Get the string representation of the type tree node. The string representation of the type tree node. Represents a version able unity file. The full file path. The file name. Instatiate a unity file. Instatiate a unity file. Read the unity file from a reader. Write the unity file to a writer. A endian binary reader for unity files. Get the full file path. Get the file name. Get the file type. Create a reader by the _FilePath. The file path to read. Create a reader for _FilePath by _Stream. The file path. The stream to read. Leave the stream open after the reader is disposed. Find the file type and reset stream position. Check if the file is a zip file. True if the file is a zip file; otherwise, false. Check if the file is a gzip file. The file is a gzip file; otherwise, false. Check if the file is a brotli file. The file is a brotli file; otherwise, false. Find if the file is a assets unity file. The file is a assets unity file; otherwise, false. The file type of a unity file. The file is a serialized assets file. The file is a bundle file. A endian binary writer for unity files. Get the full file path. Get the file name. Create a reader by the _FilePath. Create a reader for _FilePath by _Stream. The compression type used for the web file. No compression. Gzip compression. Brotli compression. An abstract base class for all file types that can be included in a web file. Gets or sets the name of the file. Gets or sets the file path of the file. Reads the file from the given stream. This method is not supported by default. The stream to read from. Writes the file to the given stream. The stream to write to. Converts the file to a byte array. The file content as a byte array. Releases all resources used by the object. Releases the unmanaged resources used by the and optionally releases the managed resources. true to release both managed and unmanaged resources; false to release only unmanaged resources. A container for managing a collection of files. A list of resource files in the container. Gets a read-only list of the resource files in the container. Gets an enumerable of all files in the container. Adds a file to the container. The file to add. Adds a resource file to the container. The resource file to add. Replaces a resource file with a new one. The new resource file to replace the old one. A virtual method called when a resource file is added. The resource file that was added. Represents a resource file, which is a file with raw byte data. The raw data of the resource file. Initializes a new instance of the class. The raw data of the file. The path of the file. The name of the file. Writes the resource file data to the given stream. The stream to write to. Returns the raw data of the resource file. The raw data as a byte array. Checks if the file is a default resource file based on its name. True if it is a default resource file, false otherwise. Checks if a file is a default resource file based on its file name. The name of the file to check. True if it is a default resource file, false otherwise. Returns the name of the resource file. The name of the file. The file extension for resource files. The file extension for streaming resource files. Provides utility methods for handling special file names in Unity. Determines whether the specified file is an engine resource. The name of the file. true if the file is an engine resource; otherwise, false. Determines whether the specified file is a default resource. The name of the file. true if the file is a default resource; otherwise, false. Determines whether the specified file is an editor resource. The name of the file. true if the file is an editor resource; otherwise, false. Determines whether the specified file is a built-in extra resource. The name of the file. true if the file is a built-in extra resource; otherwise, false. Determines whether the specified file is a default resource or a built-in extra resource. The name of the file. true if the file is a default resource or a built-in extra resource; otherwise, false. Determines whether the specified file is an engine-generated file. The name of the file. true if the file is an engine-generated file; otherwise, false. Fixes a file identifier by converting it to lowercase and fixing dependency and resource paths. The file identifier to fix. The fixed file identifier. Fixes a dependency name by removing the "library/" or "resources/" prefix. The dependency name to fix. The fixed dependency name. Fixes a resource path by removing the "archive:/" prefix. The resource path to fix. The fixed resource path. Remove .dll extension from the assembly name and add the "Assembly - " prefix if appropriate. An assembly name. A new string if changed, otherwise the original string. Remove .dll extension from the assembly name. An assembly name. A new string if changed, otherwise the original string. Adds the .dll extension to an assembly name if it is missing. The assembly name. The assembly name with the .dll extension. Determines whether the specified assembly is a project assembly. The name of the assembly. true if the assembly is a project assembly; otherwise, false. Determines whether the specified assembly is a standard Unity assembly. The name of the assembly. true if the assembly is a standard Unity assembly; otherwise, false. The name of the library folder. The name of the resources folder. The primary name for default Unity resources. The alternative name for default Unity resources. The name for Unity editor resources. The primary name for built-in extra Unity resources. The alternative name for built-in extra Unity resources. The name for engine-generated files. The file extension for assemblies. A container for files to be stored in a single web file. The signature of the web file format. The compression type of the file. Find a file by its name. The name of the file to find. The found file, or null if no file with the given name is found. Replaces a resource file with a new one. The new resource file to replace the old one. Checks if the given stream represents a web file. The stream to check. True if the stream is a web file, false otherwise. Checks if the given reader represents a web file. The reader to check. True if the reader is a web file, false otherwise. Reads the web file from the given stream. The stream to read from. Reads the web file from the given stream. The stream to read from. Writes the web file to the given stream. The stream to write to. Writes the web file using the given writer. The writer to use. Whether to align the entries in the web file. Checks if a stream is gzipped. The stream to check. True if the stream is gzipped, false otherwise. Checks if a stream is brotli compressed. The stream to check. True if the stream is brotli, false otherwise. Represents a single entry in a web file, containing metadata about the file. Gets or sets the offset of the file data within the web file. Gets or sets the size of the file data. Gets or sets the name of the file. Reads the entry data from the given reader. The reader to read from. Writes the entry data to the given writer. The writer to write to. Returns a string that represents the current object. A string that represents the current object. Extends the BinaryReader to read either BigEndian or LittleEndian. The EndianType to read. Simple read 2 byte buffer. Simple read 4 byte buffer. Simple read 8 byte buffer. The BaseStream Position. The EndianType of the BitConverter. The endian binary reader needs a stream to read from and the endian. The stream to read from. The endian to read. Leave the stream open after reading. Unity uses 4 byte blocks. Align the stream if uneven to it. Align the stream to _Alignment if uneven to it. Read a Int16 depend on Endian. Read a UInt16 depend on Endian. Read a Int32 depend on Endian. Read a UInt32 depend on Endian. Read a Int64 depend on Endian. Read a UInt64 depend on Endian. Read a Float depend on Endian. Read a Double depend on Endian. Read a string. Read an aligned string. Read a string until read null byte. Extends the BinaryWriter to write either BigEndian or LittleEndian. The EndianType to read. Simple write 4096 byte buffer. The BaseStream Position. The EndianType of the BitConverter. The endian binary writer needs a stream to write to and the endian. The stream to read from. The endian to read. Leave the stream open after reading. Unity uses 4 byte blocks. Align the stream if uneven to it. Align the stream to _Alignment if uneven to it. Write a Int16 depend on Endian. Write a UInt16 depend on Endian. Write a Int32 depend on Endian. Write a UInt32 depend on Endian. Write a Int64 depend on Endian. Write a UInt64 depend on Endian. Write a float depend on Endian. Write a double depend on Endian. Write a string and write the length. Write an aligned string and write the length. Write a string without writing the length. And add a NULL at the end. Enumeration over the endian type. Little endian. Big endian. Represents a dynamically managed array that can hold more than the maximum number of elements allowed in a regular .NET array. This class internally divides the array into chunks to circumvent the size limitation of standard arrays (2,147,483,591 elements). The type of elements stored in the array. Maximum size of a single array chunk (2,147,483,591 not (int.MaxValue) 2,147,483,647 elements). This constant is used to partition the array into multiple chunks as standard .NET arrays cannot exceed this size. Jagged array that holds the data in multiple chunks. Each chunk is an array with a maximum size of . The last chunk may be smaller depending on the total length. Jagged array that holds the data in multiple chunks. Each chunk is an array with a maximum size of . The last chunk may be smaller depending on the total length. The total length of the array. This represents the total number of elements that the can hold. Initializes a new instance of the class with the specified length. The total length of the array. The array is divided into chunks, with each chunk having a size of except possibly the last one. If the length is negative, an is thrown. Thrown when the length is negative. Initializes a new instance of the class from an existing array. The source array to initialize from. Creates a new LongArray and copies all elements from the source array. The resulting LongArray will have the same length as the source array. Thrown when the source array is null. Gets or sets the value at the specified index. The index of the element to access. The element at the specified index. Thrown when the index is out of bounds. This indexer provides access to the entire array, abstracting the chunking mechanism from the user. The index is validated to ensure it is within bounds. Gets the total length of the array. This property returns the total number of elements that the can store. Converts the to a regular array. A new array containing all elements of the . Thrown when the LongArray's length exceeds the maximum size of a regular array or when there isn't enough memory to create the new array. This method creates a new array and copies all elements from the LongArray into it. The resulting array will have the same length as the LongArray. Note that this method can only create arrays up to CHUNK_SIZE in length. If the LongArray is larger, an OutOfMemoryException will be thrown. Copies the elements from one to a target array. The source from which to copy the elements. The index in the source array to start the copy operation. The destination array to copy the elements to. This can be a regular array or another . The index in the destination array to start placing the copied elements. The number of elements to copy. The destination can be a regular array. The method ensures that no out-of-bounds access occurs. Thrown when the target array is not large enough to hold the copied data. Thrown when the source or destination index is out of range. Copies elements from a regular array to a . The source array from which to copy the elements. The index in the source array to start the copy operation. The destination to copy the elements to. The index in the destination array to start placing the copied elements. The number of elements to copy. This method handles copying from a regular array to a LongArray, managing the chunking internally. Thrown when the source array is not of the correct type or when parameters are invalid. Thrown when the source or destination index is out of range. Copies elements from one to another . The source LongArray from which to copy the elements. The index in the source array to start the copy operation. The destination LongArray to copy the elements to. The index in the destination array to start placing the copied elements. The number of elements to copy. This method handles copying between LongArrays efficiently, managing the chunking internally. For large copies, it attempts to optimize chunk-aligned copies. Thrown when either source or destination is null. Thrown when the source or destination index is out of range. Copies elements from one to another with parallel processing support. The source LongArray from which to copy the elements. The index in the source array to start the copy operation. The destination LongArray to copy the elements to. The index in the destination array to start placing the copied elements. The number of elements to copy. Whether to use parallel processing for the copy operation. The minimum number of elements required to trigger parallel processing. This method provides an optimized copy operation for large arrays using parallel processing when appropriate. The parallel processing is only used if _UseParallel is true and the count exceeds the threshold. Creates a new LongArray with the specified size and copies elements from the source array. The source LongArray to copy elements from. The size of the new array. A new LongArray with the specified size containing copied elements from the source array. If the new size is larger than the source array, the additional elements will be initialized to their default values. If the new size is smaller, only elements that fit within the new size will be copied. Thrown when source array is null. Thrown when new size is negative. Creates a new LongArray with the specified size and copies elements from the source array, optionally allowing parallel processing for large arrays. The source LongArray to copy elements from. The size of the new array. Whether to use parallel processing for copying elements. The minimum number of elements required to trigger parallel processing. A new LongArray with the specified size containing copied elements from the source array. This overload provides the option to use parallel processing for large arrays to improve performance. Parallel processing will only be used if _UseParallel is true and the number of elements to copy exceeds the specified threshold. Thrown when source array is null. Thrown when new size is negative or parallel threshold is negative. Represents a stream that uses a LongArray{byte} as its backing store, allowing for streams larger than 2GB. This class provides stream functionality using a LongArray{byte} as the underlying storage mechanism, which enables handling of data sizes beyond the standard .NET array size limitations. The stream can be created with various initial configurations and supports both reading and writing operations. The underlying buffer that stores the stream's data. This buffer uses LongArray{byte} to store data, allowing for sizes larger than 2GB. The current position within the stream. The length of the stream. Indicates whether the stream supports writing operations. The initial capacity used when automatically resizing the stream. The factor by which the capacity increases when automatically resizing. The current capacity of the stream's buffer. Indicates whether the object has been disposed. Initializes a new instance of the class with zero initial capacity. Creates a writable stream with zero initial capacity. The stream can hold data up to the specified size. Thrown when capacity is negative. Initializes a new instance of the class with the specified capacity. The initial capacity of the stream in bytes. Creates a writable stream with the specified capacity. The stream can hold data up to the specified size. Thrown when capacity is negative. Initializes a new instance of the class based on the specified byte array. The array of bytes to use as the stream's content. Indicates whether the stream should be writable. Default is true. Creates a stream containing the data from the provided byte array. The array's contents are copied to the internal buffer. Thrown when array is null. Initializes a new instance of the class using an existing LongArray{byte}. The LongArray{byte} to use as the stream's buffer. Indicates whether the stream should be writable. Default is true. Creates a stream that directly uses the provided LongArray{byte} as its buffer. Changes to the stream will affect the original array and vice versa. Thrown when longArray is null. Initializes a new instance of the class from a list of byte arrays. The list of byte arrays to combine into the stream. Indicates whether the stream should be writable. Default is true. Creates a stream by combining multiple byte arrays into a single continuous buffer. The data from all chunks is copied into a new internal buffer. Thrown when chunks is null. Thrown when chunks is empty or contains null arrays. Gets the underlying LongArray{byte} buffer used by this stream. Provides direct access to the underlying buffer. Care should be taken when modifying the buffer directly as it may affect the stream's integrity. Gets the current capacity of the stream's buffer. Ensures that the stream's capacity is at least the specified value. The minimum required capacity. If the current capacity is less than the specified minimum, the capacity is increased to the larger of: - The specified minimum - The current capacity multiplied by the growth factor Flushes any buffers for this stream. This method has no effect for this memory-based stream as all operations are performed directly in memory. It is included to satisfy the Stream abstract class requirements. Reads a sequence of bytes from the stream and advances the position within the stream by the number of bytes read. An array of bytes. When this method returns, the buffer contains the specified byte array with the values between offset and (offset + count - 1) replaced by the bytes read from the current source. The zero-based byte offset in buffer at which to begin storing the data read from the current stream. The maximum number of bytes to be read from the current stream. The total number of bytes read into the buffer. This can be less than the number of bytes requested if that many bytes are not currently available, or zero (0) if the end of the stream has been reached. Thrown when buffer is null. Thrown when offset or count is negative. Thrown when the sum of offset and count is larger than the buffer length. Sets the position within the current stream. A byte offset relative to the origin parameter. A value of type SeekOrigin indicating the reference point used to obtain the new position. The new position within the current stream. Thrown when origin is invalid. Thrown when seeking is attempted before the beginning of the stream. Sets the length of the current stream. The desired length of the current stream in bytes. If the specified value is less than the current length, the stream is truncated. If the specified value is greater than the current length, the stream is extended and the additional bytes are initialized to zero. The stream does not support writing. The specified length is negative. Writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written. An array of bytes. This method copies count bytes from buffer to the current stream. The zero-based byte offset in buffer at which to begin copying bytes to the current stream. The number of bytes to be written to the current stream. The stream will automatically resize if necessary to accommodate the written data. The stream does not support writing. Thrown when buffer is null. Thrown when offset or count is negative. Thrown when the sum of offset and count is larger than the buffer length. Writes a byte to the current position in the stream. The byte to write to the stream. The stream will automatically resize if necessary to accommodate the written data. The stream does not support writing. Reduces the capacity of the stream to match its current length. This method can be used to minimize the memory usage of the stream by releasing any unused capacity. Converts the stream's contents to a LongArray{byte}. A new LongArray{byte} containing a copy of the stream's contents. This method creates a new LongArray and copies all data from the stream into it. The entire stream's contents are copied regardless of the current position. This method is more efficient for large data sets as it maintains the chunked structure. Converts the stream's contents to a standard byte array. A new byte array containing a copy of the stream's contents. This method creates a new array and copies all data from the stream into it. The entire stream's contents are copied regardless of the current position. Note: This method is limited by the maximum size of a standard .NET array (2GB). For larger data sets, use ToLongArray() instead. Thrown when the stream length exceeds the maximum size of a standard array. Releases the unmanaged resources used by the Stream and optionally releases the managed resources. true to release both managed and unmanaged resources; false to release only unmanaged resources. This implementation has no unmanaged resources to release. The base class's Dispose method is called to ensure proper cleanup. Creates a new stream that references the same underlying data as the current stream. A new LongMemoryStream that references the same underlying data. The new stream will share the same buffer as the current stream but will maintain its own position. Changes to one stream will affect the other as they share the same underlying data. Determines whether the contents of this stream are equal to another stream. The stream to compare with the current stream. true if the contents of both streams are equal; otherwise, false. This method compares the actual contents of the streams, regardless of their current positions. The positions of both streams remain unchanged after the comparison. Gets a value indicating whether the current stream position is at the end of the stream. The class is version able. Current version.