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:
Collaboration diagram for xgboost::common::PeekableInStream:

## 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 *dptr, size_t size) override

## Detailed Description

Input stream that support additional PeekRead operation, besides read.

## Constructor & Destructor Documentation

## ◆ PeekableInStream()

xgboost::common::PeekableInStream::PeekableInStream | ( | dmlc::Stream * | strm | ) |
| inline explicit

## Member Function Documentation

## ◆ PeekRead()

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

Reimplemented in xgboost::common::FixedSizeStream.

## ◆ Read()

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

## ◆ Write()

void xgboost::common::PeekableInStream::Write | ( | const void * | dptr,
|  | size_t | size
| ) |  |
| inline override

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

- /workspace/src/common/io.h