compress

Compress data

  1. ubyte[] compress(const(void)[] srcbuf, int level)
    ubyte[]
    compress
    (
    const(void)[] srcbuf
    ,
    int level
    )
  2. ubyte[] compress(const(void)[] srcbuf)

Parameters

srcbuf const(void)[]

buffer containing the data to compress

level int

compression level. Legal values are -1 .. 9, with -1 indicating the default level (6), 0 indicating no compression, 1 being the least compression and 9 being the most.

Return Value

Type: ubyte[]

the compressed data

Meta