instream_file(FILE *file)
Constructor.
Definition: instream_file.cpp:18
static void unittest(void)
Unit test this class.
Definition: instream_file.cpp:75
Read data from an input stream.
Definition: instream.h:45
Container class representing a document through the indexing pipeline.
Definition: document.h:31
virtual ~instream_file()
Destructor.
Definition: instream_file.h:64
size_t bytes_read
The number of bytes that have been read from the file.
Definition: instream_file.h:33
Partial file and whole file based I/O methods.
Base class for reading data from some input source.
Subclass of the instream base class used for reading data from a disk file.
Definition: instream_file.h:28
virtual void read(document &buffer)
Read buffer.contents.size() bytes of data into buffer.contents, resizing on eof.
Definition: instream_file.cpp:44
File based I/O methods including whole file and partial files.
Definition: file.h:45
file disk_file
The file to read from.
Definition: instream_file.h:31
Definition: compress_integer_elias_delta_simd.c:23
size_t file_length
The length of the file.
Definition: instream_file.h:32