Slim numerical data compression 1.0
slimlib_file_t Struct Reference

All important elements of the SLIMFILE. More...

Public Attributes

enum slimlib_mode_t mode
 Mode (SLIMLIB_READ or SLIMLIB_WRITE)
 
struct slim_compressor_tcompressor
 Compressor, for _WRITE mode.
 
struct slim_expander_texpander
 Expander, for _READ mode.
 
int writing_is_underway
 If in _WRITE mode, did we start writing?
 
int nchan
 How many channels are known?
 
int nframes
 How many frames expected per section.
 
long bytes_used
 How many bytes read/written so far.
 
int fd
 Remember the filename or file descriptor that was opened.
 
char * filename
 

Detailed Description

All important elements of the SLIMFILE.

This is an opaque type from the C point of view, so its contents are defined here, rather than in the header.

Member Data Documentation

◆ fd

int slimlib_file_t::fd

Remember the filename or file descriptor that was opened.


We'll need this again in case user chooses to rewind.

Referenced by slimclose(), slimdopen(), slimopen(), slimrewind(), and slimseek().


The documentation for this struct was generated from the following file: