Turnstone Operating System
Loading...
Searching...
No Matches
compression.64.c File Reference

Compression library. More...

#include <compression.h>
#include <deflate.h>
#include <zpack.h>

Functions

 MODULE ("turnstone.lib")
 
int8_t compression_null_pack (buffer_t *in, buffer_t *out)
 
int8_t compression_null_unpack (buffer_t *in, buffer_t *out)
 
const compression_tcompression_get (compression_type_t type)
 

Variables

const compression_t compression_null
 
const compression_t deflate_compression
 
const compression_t zpack_compression
 

Detailed Description

Compression library.

This work is licensed under TURNSTONE OS Public License. Please read and understand latest version of Licence.

Variable Documentation

◆ compression_null

const compression_t compression_null
Initial value:
= {
.type = COMPRESSION_TYPE_NONE,
.pack = compression_null_pack,
.unpack = compression_null_unpack,
}

◆ deflate_compression

const compression_t deflate_compression
Initial value:
= {
.type = COMPRESSION_TYPE_DEFLATE,
.pack = deflate_deflate,
.unpack = deflate_inflate,
}

◆ zpack_compression

const compression_t zpack_compression
Initial value:
= {
.type = COMPRESSION_TYPE_ZPACK,
.pack = zpack_pack,
.unpack = zpack_unpack,
}
int8_t zpack_unpack(buffer_t *in, buffer_t *out)
unpacks data at input buffer to output buffer with z77 algorithm
Definition: zpack.64.c:230
int8_t zpack_pack(buffer_t *in, buffer_t *out)
packs data at input buffer to output buffer with z77 algorithm
Definition: zpack.64.c:155