|
SDDS ToolKit Programs and Libraries for C and Python
|
Implementation of LZMA-compressed file handling functions.
This file provides a set of functions to work with files compressed using the LZMA compression algorithm. It abstracts the complexities of LZMA stream handling, offering a simple file-like interface for reading from and writing to compressed files.
Features:
Definition in file SDDS_lzma.c.
#include <assert.h>#include <errno.h>#include <fcntl.h>#include <stdio.h>#include <stdlib.h>#include <syslog.h>#include <unistd.h>#include <sys/stat.h>#include <sys/types.h>#include <stdint.h>#include <string.h>#include <stdarg.h>#include <lzma.h>#include "mdb.h"#include "mdb_thread.h"Go to the source code of this file.
Functions | |
| static int | SDDS_GetLockedLZMACompressionLevel (void) |
| void | SDDS_SetLZMACompressionLevel (int32_t level) |
| int32_t | SDDS_GetLZMACompressionLevel (void) |
| void * | lzma_open (const char *path, const char *mode) |
| int | lzma_close (struct lzmafile *file) |
| long | lzma_read (struct lzmafile *file, void *buf, size_t count) |
| char * | lzma_gets (char *s, int size, struct lzmafile *file) |
| long | lzma_write (struct lzmafile *file, const void *buf, size_t count) |
| int | lzma_puts (const char *s, struct lzmafile *file) |
| int | lzma_putc (int c, struct lzmafile *file) |
| int | lzma_printf (struct lzmafile *file, const char *format,...) |
| int | lzma_eof (struct lzmafile *file) |
| long | lzma_tell (struct lzmafile *file) |
| int | lzma_seek (struct lzmafile *file, long offset, int whence) |
| void * | UnpackLZMAOpen (char *filename) |
| int lzma_close | ( | struct lzmafile * | file | ) |
Definition at line 136 of file SDDS_lzma.c.
| int lzma_eof | ( | struct lzmafile * | file | ) |
Definition at line 415 of file SDDS_lzma.c.
| char * lzma_gets | ( | char * | s, |
| int | size, | ||
| struct lzmafile * | file ) |
Definition at line 217 of file SDDS_lzma.c.
| void * lzma_open | ( | const char * | path, |
| const char * | mode ) |
Definition at line 99 of file SDDS_lzma.c.
| int lzma_printf | ( | struct lzmafile * | file, |
| const char * | format, | ||
| ... ) |
Definition at line 392 of file SDDS_lzma.c.
| int lzma_putc | ( | int | c, |
| struct lzmafile * | file ) |
Definition at line 356 of file SDDS_lzma.c.
| int lzma_puts | ( | const char * | s, |
| struct lzmafile * | file ) |
Definition at line 311 of file SDDS_lzma.c.
| long lzma_read | ( | struct lzmafile * | file, |
| void * | buf, | ||
| size_t | count ) |
Definition at line 176 of file SDDS_lzma.c.
| int lzma_seek | ( | struct lzmafile * | file, |
| long | offset, | ||
| int | whence ) |
Definition at line 434 of file SDDS_lzma.c.
| long lzma_tell | ( | struct lzmafile * | file | ) |
Definition at line 430 of file SDDS_lzma.c.
| long lzma_write | ( | struct lzmafile * | file, |
| const void * | buf, | ||
| size_t | count ) |
Definition at line 275 of file SDDS_lzma.c.
|
static |
Definition at line 75 of file SDDS_lzma.c.
| int32_t SDDS_GetLZMACompressionLevel | ( | void | ) |
Definition at line 91 of file SDDS_lzma.c.
| void SDDS_SetLZMACompressionLevel | ( | int32_t | level | ) |
Definition at line 83 of file SDDS_lzma.c.
| void * UnpackLZMAOpen | ( | char * | filename | ) |
Definition at line 438 of file SDDS_lzma.c.