Medial Code Documentation
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions
xgboost::common::AlignedMemWriteStream Class Reference

Output stream backed by memory buffer. More...

#include <io.h>

Inheritance diagram for xgboost::common::AlignedMemWriteStream:
xgboost::common::AlignedFileWriteStream xgboost::common::AlignedWriteStream

Public Member Functions

 AlignedMemWriteStream (std::string *p_buf)
 
std::size_t Tell () const noexcept(true)
 
- Public Member Functions inherited from xgboost::common::AlignedFileWriteStream
 AlignedFileWriteStream (StringView path, StringView flags)
 
- Public Member Functions inherited from xgboost::common::AlignedWriteStream
std::size_t Write (const void *ptr, std::size_t n_bytes) noexcept(false)
 
template<typename T >
std::enable_if_t< std::is_pod_v< T >, std::size_t > Write (T const &v)
 

Protected Member Functions

std::size_t DoWrite (const void *ptr, std::size_t n_bytes) noexcept(true) override
 

Detailed Description

Output stream backed by memory buffer.

Aligned to IOAlignment() bytes.

Member Function Documentation

◆ DoWrite()

std::size_t xgboost::common::AlignedMemWriteStream::DoWrite ( const void *  ptr,
std::size_t  n_bytes 
)
overrideprotectedvirtualnoexcept

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