Skip to content

AFNI/NIfTI Server

Sections
Personal tools
You are here: Home » AFNI » Documentation

Doxygen Source Code Documentation


Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals   Search  

NI_stream_type Struct Reference

#include <niml.h>


Data Fields

int type
int bad
int port
int sd
FILE * fp
int fsize
char name [256]
int io_mode
int data_mode
int bin_thresh
int nbuf
int npos
int bufsize
char * buf
SHMiocshmioc
char orig_name [256]
int goodcheck_time
int b64_numleft
byte b64_left [4]

Detailed Description

Data needed to process input stream.

Definition at line 333 of file niml.h.


Field Documentation

byte NI_stream_type::b64_left[4]
 

Leftover decoded bytes from NI_stream_readbuf64()

Definition at line 362 of file niml.h.

Referenced by NI_stream_readbuf64().

int NI_stream_type::b64_numleft
 

For use in NI_stream_readbuf64()

Definition at line 361 of file niml.h.

Referenced by NI_read_element(), NI_stream_open(), and NI_stream_readbuf64().

int NI_stream_type::bad
 

Tells whether I/O is OK for this yet

Definition at line 335 of file niml.h.

Referenced by NI_decode_one_double(), NI_decode_one_string(), NI_read_columns(), NI_read_element(), NI_reset_buffer(), NI_stream_close_keep(), NI_stream_getbuf(), NI_stream_getbufsize(), NI_stream_goodcheck(), NI_stream_hasinput(), NI_stream_open(), NI_stream_read(), NI_stream_readable(), NI_stream_readcheck(), NI_stream_reopen(), NI_stream_seek(), NI_stream_setbuf(), NI_stream_setbufsize(), NI_stream_write(), NI_stream_writeable(), NI_stream_writecheck(), NI_write_columns(), NI_write_element(), NI_write_procins(), scan_for_angles(), and tcp_sigurg_handler().

int NI_stream_type::bin_thresh
 

Threshold size for binary write.

Definition at line 348 of file niml.h.

Referenced by NI_stream_open().

char* NI_stream_type::buf
 

I/O buffer (may be NULL).

Definition at line 353 of file niml.h.

Referenced by NI_decode_one_double(), NI_decode_one_string(), NI_read_element(), NI_reset_buffer(), NI_stream_clearbuf(), NI_stream_close_keep(), NI_stream_fillbuf(), NI_stream_getbuf(), NI_stream_open(), NI_stream_read(), NI_stream_readbuf(), NI_stream_readbuf64(), NI_stream_setbuf(), NI_stream_setbufsize(), NI_stream_write(), and scan_for_angles().

int NI_stream_type::bufsize
 

Length of buf array.

Definition at line 352 of file niml.h.

Referenced by NI_stream_clearbuf(), NI_stream_fillbuf(), NI_stream_getbufsize(), NI_stream_open(), NI_stream_readbuf(), NI_stream_readbuf64(), NI_stream_setbuf(), NI_stream_setbufsize(), NI_stream_write(), and scan_for_angles().

int NI_stream_type::data_mode
 

Text, binary, or base64?

Definition at line 346 of file niml.h.

FILE* NI_stream_type::fp
 

FILE only: pointer to open file

Definition at line 340 of file niml.h.

Referenced by NI_stream_close_keep(), NI_stream_goodcheck(), NI_stream_open(), NI_stream_read(), NI_stream_readcheck(), NI_stream_seek(), NI_stream_write(), and NI_stream_writecheck().

int NI_stream_type::fsize
 

FILE only: length of file for input

Definition at line 341 of file niml.h.

Referenced by NI_stream_open(), and NI_stream_readcheck().

int NI_stream_type::goodcheck_time
 

NI_clock_time() of last NI_stream_goodcheck()

Definition at line 359 of file niml.h.

Referenced by NI_stream_open().

int NI_stream_type::io_mode
 

Input or output?

Definition at line 345 of file niml.h.

Referenced by NI_stream_clearbuf(), NI_stream_close_keep(), NI_stream_getbuf(), NI_stream_goodcheck(), NI_stream_open(), NI_stream_read(), NI_stream_readable(), NI_stream_readcheck(), NI_stream_setbuf(), NI_stream_setbufsize(), NI_stream_writeable(), and NI_stream_writecheck().

char NI_stream_type::name[256]
 

Hostname or filename

Definition at line 343 of file niml.h.

Referenced by NI_stream_goodcheck(), NI_stream_name(), NI_stream_open(), and NI_stream_reopen().

int NI_stream_type::nbuf
 

Number of bytes left in buf.

Definition at line 350 of file niml.h.

Referenced by NI_decode_one_double(), NI_decode_one_string(), NI_reset_buffer(), NI_stream_clearbuf(), NI_stream_fillbuf(), NI_stream_hasinput(), NI_stream_open(), NI_stream_read(), NI_stream_readbuf(), NI_stream_readbuf64(), NI_stream_readcheck(), NI_stream_seek(), NI_stream_setbuf(), NI_stream_setbufsize(), NI_stream_write(), and scan_for_angles().

int NI_stream_type::npos
 

Index of next unscanned byte in buf.

Definition at line 351 of file niml.h.

Referenced by NI_decode_one_double(), NI_decode_one_string(), NI_read_element(), NI_reset_buffer(), NI_stream_hasinput(), NI_stream_open(), NI_stream_read(), NI_stream_readbuf(), NI_stream_readbuf64(), NI_stream_readcheck(), NI_stream_seek(), NI_stream_setbuf(), and scan_for_angles().

char NI_stream_type::orig_name[256]
 

original (input) name when opened

Definition at line 357 of file niml.h.

Referenced by NI_stream_close_keep(), NI_stream_open(), and NI_stream_reopen().

int NI_stream_type::port
 

TCP only: port number

Definition at line 337 of file niml.h.

Referenced by NI_stream_goodcheck(), NI_stream_open(), and NI_stream_reopen().

int NI_stream_type::sd
 

TCP only: socket descriptor

Definition at line 338 of file niml.h.

Referenced by NI_stream_close_keep(), NI_stream_goodcheck(), NI_stream_open(), NI_stream_read(), NI_stream_readcheck(), NI_stream_write(), NI_stream_writecheck(), and tcp_sigurg_handler().

SHMioc* NI_stream_type::shmioc
 

for NI_SHM_TYPE only

Definition at line 355 of file niml.h.

Referenced by NI_stream_close_keep(), NI_stream_goodcheck(), NI_stream_open(), NI_stream_read(), NI_stream_readcheck(), NI_stream_write(), and NI_stream_writecheck().

int NI_stream_type::type
 

NI_TCP_TYPE, NI_FILE_TYPE, etc.

Definition at line 334 of file niml.h.

Referenced by NI_stream_clearbuf(), NI_stream_close_keep(), NI_stream_fillbuf(), NI_stream_getbuf(), NI_stream_goodcheck(), NI_stream_open(), NI_stream_read(), NI_stream_readable(), NI_stream_readbuf(), NI_stream_readcheck(), NI_stream_reopen(), NI_stream_seek(), NI_stream_setbuf(), NI_stream_setbufsize(), NI_stream_write(), NI_stream_writeable(), NI_stream_writecheck(), NI_write_columns(), NI_write_element(), and tcp_sigurg_handler().


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

Powered by Plone

This site conforms to the following standards: