|
ugBASIC 1.18
An isomorphic BASIC language compiler for retrocomputers
|
#include <stdio.h>#include <string.h>#include <stdlib.h>#include <limits.h>#include <unistd.h>Go to the source code of this file.
Data Structures | |
| struct | _MSC1Compressor |
Typedefs | |
| typedef enum _MSC1CompressorState | MSC1CompressorState |
| typedef struct _MSC1Compressor | MSC1Compressor |
| typedef unsigned char | MemoryBlock |
Enumerations | |
| enum | _MSC1CompressorState { MSC1_CS_READY = 0 , MSC1_CS_STORE = 1 , MSC1_CS_MOVE1 = 2 , MSC1_CS_LITERAL = 3 , MSC1_CS_LITERAL_DUPE = 4 , MSC1_CS_MOVE4 = 5 , MSC1_CS_DUPE_STORE = 6 , MSC1_CS_DUPE_MOVE4 = 7 , MSC1_CS_DUPES = 8 , MSC1_CS_END_OF_BLOCK = 9 } |
Functions | |
| MSC1Compressor * | msc1_create (int _maximum_repeated_sequences) |
| MemoryBlock * | msc1_compress (MSC1Compressor *_msc1, MemoryBlock *_input, int _size, int *_output_size) |
| MemoryBlock * | msc1_uncompress (MSC1Compressor *_msc1, MemoryBlock *_input, int _size, int *_output_size) |
| void | msc1_free (MSC1Compressor *_msc1) |
| typedef unsigned char MemoryBlock |
| typedef struct _MSC1Compressor MSC1Compressor |
| typedef enum _MSC1CompressorState MSC1CompressorState |
| enum _MSC1CompressorState |
| MemoryBlock * msc1_compress | ( | MSC1Compressor * | _msc1, |
| MemoryBlock * | _input, | ||
| int | _size, | ||
| int * | _output_size ) |
| MSC1Compressor * msc1_create | ( | int | _maximum_repeated_sequences | ) |
| void msc1_free | ( | MSC1Compressor * | _msc1 | ) |
| MemoryBlock * msc1_uncompress | ( | MSC1Compressor * | _msc1, |
| MemoryBlock * | _input, | ||
| int | _size, | ||
| int * | _output_size ) |