CORSIKA add-on package IACT/ATMO:
Version 1.63 (November 2020)
|
The IO_BUFFER structure contains all data needed the manage the stuff. More...
#include <io_basic.h>
Data Fields | |
int | aux_count |
May be used for dedicated buffers. | |
unsigned char * | buffer |
Pointer to allocated data space. More... | |
long | buflen |
Usable length of data space. More... | |
int | byte_order |
Set if block is not in internal byte order. More... | |
BYTE * | data |
Position for next get.../put... More... | |
int | data_pending |
Set to 1 when header is read but not the data. | |
int | extended |
Set to 1 if you want to use the extension field always. More... | |
FILE * | input_file |
For use of stream I/O for input. More... | |
int | input_fileno |
For use of read() function for input. More... | |
int | is_allocated |
Indicates if buffer is allocated by eventio. More... | |
int | item_extension [MAX_IO_ITEM_LEVEL] |
Where the extension field was used. More... | |
long | item_length [MAX_IO_ITEM_LEVEL] |
Length of each level of items. | |
int | item_level |
Current level of nesting of items. More... | |
long | item_start_offset [MAX_IO_ITEM_LEVEL] |
Where the item starts in buffer. More... | |
long | max_length |
The maximum length for extending the buffer. | |
long | min_length |
The initial and minimum length of the buffer. | |
int | msg_ext |
1 if buffer extension should be reported, 0 if not | |
FILE * | output_file |
For use of stream I/O for output. More... | |
int | output_fileno |
For use of write() function for output. More... | |
long | r_remaining |
int | regular |
1 if a regular file, 0 not known, -1 not regular | |
long | sub_item_length [MAX_IO_ITEM_LEVEL] |
Length of its sub-items. | |
int | sync_err_count |
Count of synchronization errors. More... | |
int | sync_err_max |
Maximum accepted number of synchronisation errors. More... | |
int(* | user_function )(unsigned char *, long, int) |
For use of special type of I/O. More... | |
long | w_remaining |
Byte available for reading/writing. More... | |
unsigned char* _struct_IO_BUFFER::buffer |
long _struct_IO_BUFFER::buflen |
int _struct_IO_BUFFER::byte_order |
BYTE* _struct_IO_BUFFER::data |
int _struct_IO_BUFFER::extended |
FILE* _struct_IO_BUFFER::input_file |
int _struct_IO_BUFFER::input_fileno |
int _struct_IO_BUFFER::is_allocated |
It is 1 if buffer is allocated by eventio, 0 if buffer provided by user function (in which case the user should call allocate_io_buffer with the appropriate size; then the buffer always allocated in allocate_io_buffer() must be freed by the user function, replaced by its external buffer, and finally is_allocated set to 0).
int _struct_IO_BUFFER::item_extension[MAX_IO_ITEM_LEVEL] |
int _struct_IO_BUFFER::item_level |
long _struct_IO_BUFFER::item_start_offset[MAX_IO_ITEM_LEVEL] |
FILE* _struct_IO_BUFFER::output_file |
int _struct_IO_BUFFER::output_fileno |
int _struct_IO_BUFFER::sync_err_count |
int _struct_IO_BUFFER::sync_err_max |
int(* _struct_IO_BUFFER::user_function) (unsigned char *, long, int) |
long _struct_IO_BUFFER::w_remaining |