| 
    Open CASCADE Technology 7.8.2.dev
    
   | 
 
Auxiliary tool for buffered reading from input stream within chunks of constant size. More...
#include <Standard_ReadBuffer.hxx>
Public Member Functions | |
| Standard_ReadBuffer (int64_t theDataLen, size_t theChunkLen, bool theIsPartialPayload=false) | |
| Constructor with initialization.   | |
| void | Init (int64_t theDataLen, size_t theChunkLen, bool theIsPartialPayload=false) | 
| Initialize the buffer.   | |
| bool | IsDone () const | 
| Return TRUE if amount of read bytes is equal to requested length of entire data.   | |
| template<typename Chunk_T , typename Stream_T > | |
| Chunk_T * | ReadChunk (Stream_T &theStream) | 
| Read next chunk.   | |
| template<typename Stream_T > | |
| char * | ReadDataChunk (Stream_T &theStream) | 
| Read next chunk.   | |
Auxiliary tool for buffered reading from input stream within chunks of constant size.
      
  | 
  inline | 
Constructor with initialization.
      
  | 
  inline | 
Initialize the buffer.
| theDataLen | [in] the full length of input data to read from stream. | 
| theChunkLen | [in] the length of single chunk to read | 
| theIsPartialPayload | [in] when FALSE, theDataLen will be automatically aligned to the multiple of theChunkLen; when TRUE, last chunk will be read from stream exactly till theDataLen allowing portion of chunk to be uninitialized (useful for interleaved data) | 
      
  | 
  inline | 
Return TRUE if amount of read bytes is equal to requested length of entire data.
Read next chunk.
Read next chunk.