Swim.Lzw

swim · API reference

type order = 
  | LSB
  | MSB
type error = 
  | Invalid_code of int
  | Unexpected_eof
  | Buffer_overflow
val error_to_string : error -> string
val decompress_to_buffer : 
  src:Cstruct.t ->
  dst:Cstruct.t ->
  (int, error) result
val decompress_cstruct : Cstruct.t -> (Cstruct.t, error) result
val decompress : 
  ?order:order ->
  ?lit_width:int ->
  string ->
  (string, error) result
val decompress_lsb8 : string -> (string, error) result