23 #if !defined (_RTEMS_RTL_OBJ_COMP_H_) 24 #define _RTEMS_RTL_OBJ_COMP_H_ 26 #include <rtems/rtl/rtl-obj-cache.h> 35 #define RTEMS_RTL_DECOMP_INPUT_SIZE (256) 40 #define RTEMS_RTL_COMP_NONE (0) 41 #define RTEMS_RTL_COMP_LZ77 (1) struct rtems_rtl_obj_cpmp_s rtems_rtl_obj_comp_t
The compressed file.
rtems_rtl_obj_cache_t * cache
The cache provides the input buffer.
Definition: rtl-obj-comp.h:48
int compression
The type of compression.
Definition: rtl-obj-comp.h:51
off_t offset
The base offset of the buffer.
Definition: rtl-obj-comp.h:52
uint32_t read
The amount of data read.
Definition: rtl-obj-comp.h:56
bool rtems_rtl_obj_comp_open(rtems_rtl_obj_comp_t *comp, size_t size)
Open a compressor allocating the output buffer.
Definition: rtl-obj-comp.c:34
The buffer cache.
Definition: rtl-obj-cache.h:53
The compressed file.
Definition: rtl-obj-comp.h:46
size_t size
The size of the output buffer.
Definition: rtl-obj-comp.h:53
void rtems_rtl_obj_comp_close(rtems_rtl_obj_comp_t *comp)
Close a compressor.
Definition: rtl-obj-comp.c:54
bool rtems_rtl_obj_comp_read(rtems_rtl_obj_comp_t *comp, void *buffer, size_t length)
Read decompressed data.
Definition: rtl-obj-comp.c:82
int fd
The file descriptor.
Definition: rtl-obj-comp.h:50
size_t level
The amount of data in the buffer.
Definition: rtl-obj-comp.h:54
void rtems_rtl_obj_comp_set(rtems_rtl_obj_comp_t *comp, rtems_rtl_obj_cache_t *cache, int fd, int compression, off_t offset)
Set the cache and offset in the file the compressed stream starts.
Definition: rtl-obj-comp.c:67
uint8_t * buffer
The buffer.
Definition: rtl-obj-comp.h:55