class arisen::datastream< size_t >

Public Functions

Type

Name

datastream (size_t init_size = 0)

bool

skip (size_t s)

bool

write (const char *, size_t s)

bool

put (char)

bool

valid () const

bool

seekp (size_t p)
Set new size.

size_t

tellp () const

size_t

remaining () const

Public Functions Documentation

function datastream

arisen::datastream< size_t >::datastream(
    size_t init_size = 0
)

Construct a new specialized datastream object given the initial size

Parameters:

init_size - The initial size

function skip

bool arisen::datastream< size_t >::skip(
    size_t s
)

Increment the size by s. This behaves the same as write( const char* ,size_t s ).

Parameters:

s - The amount of size to increase
Returns:

true

function write

bool arisen::datastream< size_t >::write(
    const char * ,
    size_t s
)

function put

bool arisen::datastream< size_t >::put(
    char 
)

Increment the size by one

Returns:

true

function valid

bool arisen::datastream< size_t >::valid() const

Check validity. It's always valid

Returns:

true

function seekp

bool arisen::datastream< size_t >::seekp(
    size_t p
)

Set new size.

Set new size

Parameters:

p - The new size
Returns:

true

function tellp

size_t arisen::datastream< size_t >::tellp() const

p - The new size
Returns:

true

function tellp

size_t arisen::datastream< size_t >::tellp() const

Get the size

Returns:

size_t - The size

function remaining

size_t arisen::datastream< size_t >::remaining() const

Always returns 0

Returns:

size_t - 0

The documentation for this class was generated from the following file: libraries/arisenlib/core/arisen/datastream.hpp