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 *, 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 | ) |
| 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 * | ,
|  | size_t |
| ) |  |
| inline override

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

- /home/runner/work/xgboost/xgboost/src/common/io.h