SnappyUnsafeBytesExtension extension
Snappy operations on blit's external-memory UnsafeBytes handles.
Every method takes the byte length explicitly because an UnsafeBytes
handle stores only an address.
- on
-
- UnsafeBytes
Methods
-
snappyCompress(
int length, {int level = 1}) → SnappyMemory -
Available on UnsafeBytes, provided by the SnappyUnsafeBytesExtension extension
Compresseslengthbytes of this memory into a new external allocation. -
snappyCompressInto(
int length, UnsafeBytes destination, int destinationLength, {int level = 1}) → int -
Available on UnsafeBytes, provided by the SnappyUnsafeBytesExtension extension
Compresseslengthbytes of this memory intodestination. -
snappyDecompress(
int length) → SnappyMemory -
Available on UnsafeBytes, provided by the SnappyUnsafeBytesExtension extension
Decompresses the block stream oflengthbytes into new external memory. -
snappyDecompressInto(
int length, UnsafeBytes destination, int destinationLength) → int -
Available on UnsafeBytes, provided by the SnappyUnsafeBytesExtension extension
Decompresses the block stream oflengthbytes intodestination. -
snappyFrameCompress(
int length, {int level = 1}) → SnappyMemory -
Available on UnsafeBytes, provided by the SnappyUnsafeBytesExtension extension
Frameslengthbytes of this memory into a new external allocation. -
snappyFrameCompressInto(
int length, UnsafeBytes destination, int destinationLength, {int level = 1}) → int -
Available on UnsafeBytes, provided by the SnappyUnsafeBytesExtension extension
Frameslengthbytes of this memory intodestination. -
snappyFrameDecompress(
int length, {bool verifyChecksums = true}) → SnappyMemory -
Available on UnsafeBytes, provided by the SnappyUnsafeBytesExtension extension
Decompresses the framed stream oflengthbytes into new external memory. -
snappyFrameDecompressInto(
int length, UnsafeBytes destination, int destinationLength, {bool verifyChecksums = true}) → int -
Available on UnsafeBytes, provided by the SnappyUnsafeBytesExtension extension
Decompresses the framed stream oflengthbytes intodestination. -
snappyUncompressedLength(
int length) → int -
Available on UnsafeBytes, provided by the SnappyUnsafeBytesExtension extension
The uncompressed length declared by the block stream in this memory.