Jamba C++ API 7.5.0
Loading...
Searching...
No Matches
ReadOnlyMemoryStream Class Reference

#include <ReadOnlyMemoryStream.h>

Inherits IBStream.

Public Member Functions

char const * getData () const
 returns the current memory size (how many chars can be read until the end)
TSize getMemorySize () const
TSize getSize () const
int64 pos () const
 returns the total size of the memory
virtual tresult PLUGIN_API read (void *buffer, int32 numBytes, int32 *numBytesRead) SMTG_OVERRIDE
 ReadOnlyMemoryStream (char const *iMemory, TSize iMemorySize)
 Constructor.
virtual tresult PLUGIN_API seek (int64 pos, int32 mode, int64 *result) SMTG_OVERRIDE
virtual tresult PLUGIN_API tell (int64 *pos) SMTG_OVERRIDE
virtual tresult PLUGIN_API write (void *buffer, int32 numBytes, int32 *numBytesWritten) SMTG_OVERRIDE
virtual ~ReadOnlyMemoryStream ()=default

Protected Attributes

char const * fMemory
TSize fMemorySize
int64 fPos

Constructor & Destructor Documentation

◆ ReadOnlyMemoryStream()

ReadOnlyMemoryStream ( char const * iMemory,
TSize iMemorySize )

Constructor.

◆ ~ReadOnlyMemoryStream()

virtual ~ReadOnlyMemoryStream ( )
virtualdefault

Member Function Documentation

◆ getData()

char const * getData ( ) const
inline

returns the current memory size (how many chars can be read until the end)

◆ getMemorySize()

TSize getMemorySize ( ) const
inline

◆ getSize()

TSize getSize ( ) const
inline

◆ pos()

int64 pos ( ) const
inline

returns the total size of the memory

◆ read()

tresult read ( void * buffer,
int32 numBytes,
int32 * numBytesRead )
virtual

◆ seek()

tresult seek ( int64 pos,
int32 mode,
int64 * result )
virtual

◆ tell()

tresult tell ( int64 * pos)
virtual

◆ write()

tresult write ( void * buffer,
int32 numBytes,
int32 * numBytesWritten )
virtual

Member Data Documentation

◆ fMemory

char const* fMemory
protected

◆ fMemorySize

TSize fMemorySize
protected

◆ fPos

int64 fPos
protected

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