CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::InputStreamBuffer Class Referencefinal

A streambuf implementation for a InputStream. More...

#include <CeresEngine/Foundation/IO/Stream.hpp>

Inheritance diagram for CeresEngine::InputStreamBuffer:

Public Member Functions

 InputStreamBuffer (InputStream inputStream, size_t bufferLength=1024)
 Creates a new StreamBuffer.
 
 ~InputStreamBuffer () final
 Releases the ResourceStream.
 

Protected Member Functions

int underflow () override
 

Private Attributes

InputStream mInputStream
 The resource stream.
 
size_t mBufferLength
 The length of the allocated buffer.
 
charmBuffer = nullptr
 The resource stream buffer.
 

Detailed Description

A streambuf implementation for a InputStream.

Constructor & Destructor Documentation

◆ InputStreamBuffer()

CeresEngine::InputStreamBuffer::InputStreamBuffer ( InputStream  inputStream,
size_t  bufferLength = 1024 
)
explicit

Creates a new StreamBuffer.

Parameters
streamThe stream instance

◆ ~InputStreamBuffer()

CeresEngine::InputStreamBuffer::~InputStreamBuffer ( )
final

Releases the ResourceStream.

Member Function Documentation

◆ underflow()

int CeresEngine::InputStreamBuffer::underflow ( )
overrideprotected

Member Data Documentation

◆ mBuffer

char* CeresEngine::InputStreamBuffer::mBuffer = nullptr
private

The resource stream buffer.

◆ mBufferLength

size_t CeresEngine::InputStreamBuffer::mBufferLength
private

The length of the allocated buffer.

◆ mInputStream

InputStream CeresEngine::InputStreamBuffer::mInputStream
private

The resource stream.


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