InputBlock

A container holding data read from a file or standard input.

The InputBlock struct is used to represent a block of data read from a file or standard input. An array of InputBlocks is returned by readFileData. Typically one block per file. Multiple blocks are used for standard input and when the file size cannot be determined. Individual lines are not allowed to span blocks. The blocks allocated to an individual file are numbered starting with zero.

See readFileData() for more information.

Members

Variables

data
char[] data;

The actual data. Newline terminated or last block for the file.

fileBlockNumber
size_t fileBlockNumber;

Zero-based block number for the file.

filename
string filename;

Original filename or path. "-" denotes standard input.

Meta