xgboost
Public Member Functions | List of all members
xgboost::common::PeekableInStream Class Reference

Input stream that support additional PeekRead operation, besides read. More...

#include <io.h>

Inheritance diagram for xgboost::common::PeekableInStream:
Inheritance graph
Collaboration diagram for xgboost::common::PeekableInStream:
Collaboration graph

Public Member Functions

 PeekableInStream (dmlc::Stream *strm)
 
size_t Read (void *dptr, size_t size) override
 
virtual size_t PeekRead (void *dptr, size_t size)
 
void Write (const void *, size_t) override
 

Detailed Description

Input stream that support additional PeekRead operation, besides read.

Constructor & Destructor Documentation

◆ PeekableInStream()

xgboost::common::PeekableInStream::PeekableInStream ( dmlc::Stream *  strm)
inlineexplicit

Member Function Documentation

◆ PeekRead()

virtual size_t xgboost::common::PeekableInStream::PeekRead ( void *  dptr,
size_t  size 
)
virtual

◆ Read()

size_t xgboost::common::PeekableInStream::Read ( void *  dptr,
size_t  size 
)
override

◆ Write()

void xgboost::common::PeekableInStream::Write ( const void *  ,
size_t   
)
inlineoverride

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