64 void fetch(
void *buffer,
size_t bytes)
66 buffer_end = (uint8_t *)buffer +
source->fetch(buffer, bytes);
std::shared_ptr< instream > source
If this object is reading from another instream then this is that instream.
Definition: instream.h:48
Read data from an input stream.
Definition: instream.h:45
size_t buffer_used
The number of bytes of buffer that have already been used from buffer (buffer + buffer_used is a poin...
Definition: instream_document_fasta.h:41
Container class representing a document through the indexing pipeline.
Definition: document.h:31
uint8_t * buffer
Pointer to the interal buffer from which documents are extracted. Filled by calling source...
Definition: instream_document_fasta.h:39
Base class for reading data from some input source.
instream_document_fasta(std::shared_ptr< instream > &source, size_t buffer_size)
Protected constructor used to set the size of the internal buffer in the unittest.
Definition: instream_document_fasta.cpp:24
uint8_t * buffer_end
Pointer to the end of the buffer (used to prevent read past EOF).
Definition: instream_document_fasta.h:40
Child class of instream for creating documents from FASTA genome sequence files.
Definition: instream_document_fasta.h:33
static void unittest(void)
Unit test this class.
Definition: instream_document_fasta.cpp:148
virtual ~instream_document_fasta()
Destructor.
Definition: instream_document_fasta.cpp:53
size_t buffer_size
Size of the disk read buffer. Normally 16MB.
Definition: instream_document_fasta.h:36
Slices (also known as string-descriptors) for C++.
void fetch(void *buffer, size_t bytes)
Fetch another block of data from the source.
Definition: instream_document_fasta.h:64
Definition: compress_integer_elias_delta_simd.c:23
virtual void read(document &buffer)
Read the next document from the source instream into document.
Definition: instream_document_fasta.cpp:62