Turnstone Operating System
Loading...
Searching...
No Matches
compression.h File Reference

compression interface More...

#include <types.h>
#include <buffer.h>

Classes

struct  compression_header_t
 compression header More...
 
struct  compression_t
 

Macros

#define COMPRESSION_HEADER_MAGIC   "TOSCMP"
 

Typedefs

typedef enum compression_type_t compression_type_t
 
typedef struct compression_header_t compression_header_t
 
typedef struct compression_t compression_t
 

Enumerations

enum  compression_type_t { COMPRESSION_TYPE_NONE = 0 , COMPRESSION_TYPE_ZPACK , COMPRESSION_TYPE_DEFLATE , COMPRESSION_MAX }
 

Functions

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)
 

Detailed Description

compression interface

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

Macro Definition Documentation

◆ COMPRESSION_HEADER_MAGIC

#define COMPRESSION_HEADER_MAGIC   "TOSCMP"

zpack file header magic