Classes | Macros | Functions | Variables
_roslz4module.c File Reference
#include "Python.h"
#include "roslz4/lz4s.h"
Include dependency graph for _roslz4module.c:

Go to the source code of this file.

Classes

struct  LZ4Compressor
 
struct  LZ4Decompressor
 
struct  module_state
 

Macros

#define GETSTATE(m)   (&_state)
 
#define INITERROR   return
 

Functions

static PyObject * compress_impl (LZ4Compressor *self, Py_buffer *input, PyObject *output)
 
static int grow_buffer (PyObject **buf)
 
void init_roslz4 (void)
 
static PyObject * LZ4Compressor_compress (LZ4Compressor *self, PyObject *args)
 
static void LZ4Compressor_dealloc (LZ4Compressor *self)
 
static PyObject * LZ4Compressor_flush (LZ4Compressor *self, PyObject *args)
 
static int LZ4Compressor_init (LZ4Compressor *self, PyObject *args, PyObject *kwds)
 
static void LZ4Decompressor_dealloc (LZ4Decompressor *self)
 
static PyObject * LZ4Decompressor_decompress (LZ4Decompressor *self, PyObject *args)
 
static int LZ4Decompressor_init (LZ4Decompressor *self, PyObject *args, PyObject *kwds)
 

Variables

static struct module_state _state
 
static PyMethodDef LZ4Compressor_methods []
 
static PyTypeObject LZ4Compressor_Type
 
static PyMethodDef LZ4Decompressor_methods []
 
static PyTypeObject LZ4Decompressor_Type
 

Macro Definition Documentation

◆ GETSTATE

#define GETSTATE (   m)    (&_state)

Definition at line 46 of file _roslz4module.c.

◆ INITERROR

#define INITERROR   return

Definition at line 416 of file _roslz4module.c.

Function Documentation

◆ compress_impl()

static PyObject* compress_impl ( LZ4Compressor self,
Py_buffer *  input,
PyObject *  output 
)
static

Definition at line 99 of file _roslz4module.c.

◆ grow_buffer()

static int grow_buffer ( PyObject **  buf)
static

Definition at line 52 of file _roslz4module.c.

◆ init_roslz4()

void init_roslz4 ( void  )

Definition at line 419 of file _roslz4module.c.

◆ LZ4Compressor_compress()

static PyObject* LZ4Compressor_compress ( LZ4Compressor self,
PyObject *  args 
)
static

Definition at line 168 of file _roslz4module.c.

◆ LZ4Compressor_dealloc()

static void LZ4Compressor_dealloc ( LZ4Compressor self)
static

Definition at line 76 of file _roslz4module.c.

◆ LZ4Compressor_flush()

static PyObject* LZ4Compressor_flush ( LZ4Compressor self,
PyObject *  args 
)
static

Definition at line 182 of file _roslz4module.c.

◆ LZ4Compressor_init()

static int LZ4Compressor_init ( LZ4Compressor self,
PyObject *  args,
PyObject *  kwds 
)
static

Definition at line 83 of file _roslz4module.c.

◆ LZ4Decompressor_dealloc()

static void LZ4Decompressor_dealloc ( LZ4Decompressor self)
static

Definition at line 247 of file _roslz4module.c.

◆ LZ4Decompressor_decompress()

static PyObject* LZ4Decompressor_decompress ( LZ4Decompressor self,
PyObject *  args 
)
static

Definition at line 270 of file _roslz4module.c.

◆ LZ4Decompressor_init()

static int LZ4Decompressor_init ( LZ4Decompressor self,
PyObject *  args,
PyObject *  kwds 
)
static

Definition at line 254 of file _roslz4module.c.

Variable Documentation

◆ _state

struct module_state _state
static

Definition at line 47 of file _roslz4module.c.

◆ LZ4Compressor_methods

PyMethodDef LZ4Compressor_methods[]
static
Initial value:
= {
{"compress", (PyCFunction)LZ4Compressor_compress, METH_VARARGS, "method doc"},
{"flush", (PyCFunction)LZ4Compressor_flush, METH_VARARGS, "method doc"},
{NULL}
}
static PyObject * LZ4Compressor_compress(LZ4Compressor *self, PyObject *args)
static PyObject * LZ4Compressor_flush(LZ4Compressor *self, PyObject *args)

Definition at line 194 of file _roslz4module.c.

◆ LZ4Compressor_Type

PyTypeObject LZ4Compressor_Type
static

Definition at line 200 of file _roslz4module.c.

◆ LZ4Decompressor_methods

PyMethodDef LZ4Decompressor_methods[]
static
Initial value:
= {
{"decompress", (PyCFunction)LZ4Decompressor_decompress, METH_VARARGS, "method doc"},
{NULL}
}
static PyObject * LZ4Decompressor_decompress(LZ4Decompressor *self, PyObject *args)

Definition at line 340 of file _roslz4module.c.

◆ LZ4Decompressor_Type

PyTypeObject LZ4Decompressor_Type
static

Definition at line 345 of file _roslz4module.c.



roslz4
Author(s): Ben Charrow
autogenerated on Mon Feb 28 2022 23:33:18