const LSB
XuAPI
pub const LSB = 0Purpose
Constant LSB, defining protocol or algorithm parameters.
#compress/lzwGIF LSB / PDF MSB LZW.
const LSBpub const LSB = 0Constant LSB, defining protocol or algorithm parameters.
const MSBpub const MSB = 1Constant MSB, defining protocol or algorithm parameters.
encodepub fn encode(src &string, order int, lit_width int) stringEncode data into output format. Throws on failure; handle the error or propagate it to the caller.
src &stringorder intlit_width intstring — result string
decodepub fn decode(src &string, order int, lit_width int) stringDecode data from encoded representation. Throws on failure; handle the error or propagate it to the caller.
src &stringorder intlit_width intstring — result string
decode_limitpub fn decode_limit(src &string, order int, lit_width int, limit int) stringDecode limit data. Throws on failure; handle the error or propagate it to the caller.
src &stringorder intlit_width intlimit intstring — result string