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>
Go to the source code of this file.
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) |
int lzma_close | ( | struct lzmafile * | file | ) |
Definition at line 100 of file SDDS_lzma.c.
int lzma_eof | ( | struct lzmafile * | file | ) |
Definition at line 379 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 356 of file SDDS_lzma.c.
int lzma_putc | ( | int | c, |
struct lzmafile * | file ) |
Definition at line 320 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 398 of file SDDS_lzma.c.
long lzma_tell | ( | struct lzmafile * | file | ) |
Definition at line 394 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 402 of file SDDS_lzma.c.