zxc

Search:
Group by:

Procs

proc `$`(decompZscBytes: DecompZscBytes): string {....raises: [], tags: [],
    forbids: [].}
String representation of decompressed bytes for debugging
proc bytesToString(b: openArray[byte]): string {....raises: [], tags: [],
    forbids: [].}
Converts a byte sequence to a string (UTF-8 decoding)
proc compress(s: string; output: var CompZscBytes;
              level: ZxcCompressionLevel = ZXC_LEVEL_DEFAULT;
              checksumEnabled = false) {....raises: [ZxcError], tags: [],
    forbids: [].}
Compresses the given string and returns the compressed bytes
proc compressBytes(input: openArray[byte]; output: var CompZscBytes;
                   level: ZxcCompressionLevel; checksumEnabled: bool) {.
    ...raises: [ZxcError], tags: [], forbids: [].}
Compresses the given bytes to the mutable output sequence.
proc compressFile(inputPath, outputPath: string;
                  level: ZxcCompressionLevel = ZXC_LEVEL_DEFAULT;
                  checksumEnabled = false) {....raises: [ZxcError],
    tags: [ReadDirEffect], forbids: [].}
Fast file compression via ZXC streaming API with optional checksum
proc compressStream(fIn, fOut: File;
                    level: ZxcCompressionLevel = ZXC_LEVEL_DEFAULT;
                    nThreads: cint = 0; blockSize: csize_t = 0;
                    checksumEnabled = true; seekable = false;
                    progressCb: ZxcProgressCallback = nil;
                    userData: pointer = nil): int64 {....raises: [ZxcError],
    tags: [], forbids: [].}
High-level streaming compression on already-open files.
proc compressString(s: string; level: ZxcCompressionLevel = ZXC_LEVEL_DEFAULT;
                    checksumEnabled = false): CompZscBytes {....raises: [ZxcError],
    tags: [], forbids: [].}
Compresses the given string and returns the compressed bytes
proc decompress(compressed: openArray[byte]; output: var DecompZscBytes;
                checksumEnabled: bool = false) {....raises: [ZxcError], tags: [],
    forbids: [].}
Decompresses the given compressed bytes and returns the result
proc decompressBytes(compressed: openArray[byte]; output: var DecompZscBytes;
                     checksumEnabled: bool) {....raises: [ZxcError], tags: [],
    forbids: [].}
Decompresses the given compressed bytes. The output sequence is resized to fit the decompressed data
proc decompressFile(inputPath, outputPath: string; checksumEnabled = false) {.
    ...raises: [ZxcError], tags: [], forbids: [].}
Fast file decompression via ZXC streaming API with optional checksum verification.
proc decompressStream(fIn, fOut: File; nThreads: cint = 0;
                      checksumEnabled = true;
                      progressCb: ZxcProgressCallback = nil;
                      userData: pointer = nil): int64 {....raises: [ZxcError],
    tags: [], forbids: [].}
High-level streaming decompression on already-open files with optional multithreading and progress callback.
proc decompressString(compressed: openArray[byte]; checksumEnabled: bool = false): string {.
    ...raises: [ZxcError], tags: [], forbids: [].}
Decompresses the given compressed bytes and returns the result as a string
proc raiseZxc(code: int64; msg: string) {.noreturn, ...raises: [ZxcError],
    tags: [], forbids: [].}
Raises a ZxcError with the given code and message
proc stringToBytes(s: string): seq[byte] {....raises: [], tags: [], forbids: [].}
Converts a string to a byte sequence (UTF-8 encoding)