Module compress stdlib

compress
Version:
0.3.3
License:
MIT
Dependencies from vmod:
0
Imports:
0
Imported by:
3
Repository:
OS-specific
Show selected OS-specific symbols.
Backend-specific
Show selected Backend-specific symbols.

Dependencies defined in v.mod

This section is empty.

Imports

This section is empty.

Imported by

Overview

compress is a namespace for (multiple) compression algorithms supported by V.

At the moment, the following compression algorithms are implemented:

  • compress.deflate
  • compress.gzip
  • compress.zlib

Aliases

This section is empty.

Constants

#constant max_size

pub const max_size = u64(1 << 31)

Sum types

This section is empty.

Functions

#fn compress

manualfree
fn compress(data []u8, flags int) ![]u8

compresses an array of bytes based on providing flags and returns the compressed bytes in a new array NB: this is a low level api, a high level implementation like zlib/gzip should be preferred

#fn decompress

manualfree
fn decompress(data []u8, flags int) ![]u8

decompresses an array of bytes based on providing flags and returns the decompressed bytes in a new array NB: this is a low level api, a high level implementation like zlib/gzip should be preferred

Structs

This section is empty.

Interfaces

This section is empty.

Enums

This section is empty.