SDDSlib
|
Implementation of LZMA-compressed file handling functions. More...
#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>
Go to the source code of this file.
Classes | |
struct | lzmafile |
Macros | |
#define | LZMA_EASY_ENCODER(a, b) |
#define | BUF_SIZE 40960 |
Functions | |
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) |
Variables | |
static const lzma_stream | lzma_stream_init = LZMA_STREAM_INIT |
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.
#define BUF_SIZE 40960 |
Definition at line 55 of file SDDS_lzma.c.
#define LZMA_EASY_ENCODER | ( | a, | |
b ) |
Definition at line 48 of file SDDS_lzma.c.
int lzma_close | ( | struct lzmafile * | file | ) |
Definition at line 100 of file SDDS_lzma.c.
int lzma_eof | ( | struct lzmafile * | file | ) |
Definition at line 378 of file SDDS_lzma.c.
char * lzma_gets | ( | char * | s, |
int | size, | ||
struct lzmafile * | file ) |
Definition at line 181 of file SDDS_lzma.c.
void * lzma_open | ( | const char * | path, |
const char * | mode ) |
Definition at line 70 of file SDDS_lzma.c.
int lzma_printf | ( | struct lzmafile * | file, |
const char * | format, | ||
... ) |
Definition at line 355 of file SDDS_lzma.c.
int lzma_putc | ( | int | c, |
struct lzmafile * | file ) |
Definition at line 319 of file SDDS_lzma.c.
int lzma_puts | ( | const char * | s, |
struct lzmafile * | file ) |
Definition at line 275 of file SDDS_lzma.c.
long lzma_read | ( | struct lzmafile * | file, |
void * | buf, | ||
size_t | count ) |
Definition at line 140 of file SDDS_lzma.c.
int lzma_seek | ( | struct lzmafile * | file, |
long | offset, | ||
int | whence ) |
Definition at line 397 of file SDDS_lzma.c.
long lzma_tell | ( | struct lzmafile * | file | ) |
Definition at line 393 of file SDDS_lzma.c.
long lzma_write | ( | struct lzmafile * | file, |
const void * | buf, | ||
size_t | count ) |
Definition at line 239 of file SDDS_lzma.c.
void * UnpackLZMAOpen | ( | char * | filename | ) |
Definition at line 401 of file SDDS_lzma.c.
|
static |
Definition at line 57 of file SDDS_lzma.c.