Crate szs

Crate szs 

Source

Modules§

c_api

Enums§

EncodeAlgo
Algorithms available for encoding.
Error

Functions§

decode
Decodes the source slice in-place as a SZS (YAZ0) compressed stream and returns the decoded data.
decode_into
Decodes the source slice in-place as a SZS (YAZ0) compressed stream, writing the decoded data to the destination slice.
decode_yay0
Decompresses the Yay0 (SZP) compressed src byte slice and returns the uncompressed data in a Vec<u8>.
decode_yay0_into
Decompresses the Yay0 (SZP) compressed src byte slice into the dst byte slice.
decoded_size
Retrieves the decoded size of an SZS (YAZ0) or SZP (YAY0) compressed byte slice.
deinterlace
Converts an interlaced SZS (YAZ0) stream into a deinterlaced SZP (YAY0) stream and returns it.
deinterlace_into
Converts an interlaced SZS (YAZ0) stream into a deinterlaced SZP (YAY0) stream.
deinterlaced_upper_bound
Calculates the upper bound of the length for a deinterlaced SZP (YAY0) stream given an interlaced SZS (YAZ0) stream.
encode
Encodes the source slice using the specified encoding algorithm and returns the encoded data.
encode_into
Performs in-place encoding of the source slice using the specified encoding algorithm.
encode_yay0
Encodes and deinterlaces the source slice into YAY0 format using the given encoding algorithm and returns the result.
encode_yay0_into
Encodes and deinterlaces the source slice into YAY0 format using the given encoding algorithm and writes the result into the destination slice.
encoded_upper_bound
Retrieves the maximum potential encoded size for a given uncompressed data length using SZS (YAZ0) compression.
encoded_yay0_upper_bound
Calculates the upper bound of the length for an encoded YAY0 stream given uncompressed data.
is_compressed
Checks if the given byte slice is SZS (YAZ0) compressed.