|
CatapultServer
v0.5.0.1 (Elephant)
|
Loads data from an input stream in chunks. More...

Public Member Functions | |
| ChunkedDataLoader (io::InputStream &input) | |
| Creates a chunked loader around input. More... | |
| bool | hasNext () const |
Returns true if there are more entries in the input. More... | |
| void | next (uint64_t numRequestedEntries, typename TStorageTraits::DestinationType &destination) |
| Loads the next data chunk of at most numRequestedEntries into destination. More... | |
Private Attributes | |
| io::InputStream & | m_input |
| uint64_t | m_numRemainingEntries |
Loads data from an input stream in chunks.
|
inlineexplicit |
Creates a chunked loader around input.

|
inline |
Returns true if there are more entries in the input.

|
inline |
Loads the next data chunk of at most numRequestedEntries into destination.

|
private |
|
private |