const lsb
XuAPI
pub const lsb = 0Purpose
LZW as used by GIF (lsb) and PDF/TIFF-in- (msb), aligned with `compress/lzw`. Codes up to 12 bits; clear + eof after the literal alphabet. Owning strings, no io.Reader. Value `0`.
Parameters
none
API
#compress/lzwGIF LSB / PDF MSB LZW.
const lsbpub const lsb = 0LZW as used by GIF (lsb) and PDF/TIFF-in- (msb), aligned with `compress/lzw`. Codes up to 12 bits; clear + eof after the literal alphabet. Owning strings, no io.Reader. Value `0`.
none
const msbpub const msb = 1Public constant `msb`. Value `1`.
none
encodepub fn encode(src &string, order int, lit_width int) stringEncode. Throws on failure.
src &stringorder intlit_width intstring — result string
decodepub fn decode(src &string, order int, lit_width int) stringDecode. Throws on failure.
src &stringorder intlit_width intstring — result string