tvm
Loading...
Searching...
No Matches
Public Member Functions | List of all members
tvm::support::StreamBufferReader Class Reference

Buffer reader from stream to avoid virtual call overhead on each read. More...

#include <base64.h>

Collaboration diagram for tvm::support::StreamBufferReader:

Public Member Functions

 StreamBufferReader (size_t buffer_size)
 
void set_stream (tvm::support::Stream *stream)
 set input stream
 
int GetChar ()
 
bool AtEnd () const
 

Detailed Description

Buffer reader from stream to avoid virtual call overhead on each read.

Constructor & Destructor Documentation

◆ StreamBufferReader()

tvm::support::StreamBufferReader::StreamBufferReader ( size_t  buffer_size)
inlineexplicit

Member Function Documentation

◆ AtEnd()

bool tvm::support::StreamBufferReader::AtEnd ( ) const
inline
Returns
whether we are reaching the end of file

◆ GetChar()

int tvm::support::StreamBufferReader::GetChar ( )
inline
Returns
allows quick read using get char

◆ set_stream()

void tvm::support::StreamBufferReader::set_stream ( tvm::support::Stream *  stream)
inline

set input stream

Parameters
streamThe stream to be set

The documentation for this class was generated from the following file: