Function


misBufferInit

Initializes misBuffer

Syntax

#include <mis/Buffer.h>
void misBufferInit( MisBuffer *buffer_ptr )

Description

Initializes misBuffer

misBufferAllocate

Allocate the number of bytes of memory specified by size to misBuffer

Syntax

#include <mis/Buffer.h>
void misBufferAllocate( MisBuffer *buffer_ptr, const u32 size,
                        MsoAllocator *allocator_ptr )

Description

Allocate the number of bytes of memory specified by size to misBuffer. MsoAllocator specified by allocator_ptr is used. If NULL is specified, the default allocator is used.

misBufferAttach

Gives the number of bytes of memory specified by size to misBuffer

Syntax

#include <mis/Buffer.h>
void misBufferAttach( MisBuffer *buffer_ptr, const u32 size, void *mem_ptr )

Description

Gives the number of bytes of memory specified by size to misBuffer.

misBufferDestroy

Destroys misBuffer

Syntax

#include <mis/Buffer.h>
misBufferDestroy( MisBuffer *buffer_ptr )

Description

Destroys misBuffer

Macro



_misBufferGetCapacity

Returns the number of bytes which can be acquired from misBuffer

Syntax

#include <mis/Buffer.h>
_misBufferGetCapacity( MisBuffer *buffer_ptr )

Description

Returns the number of bytes which can be acquired from misBuffer

_misBufferPutCapacity

Returns the number of bytes which can be written to from misBuffer

Syntax

#include <mis/Buffer.h>
_misBufferPutCapacity( MisBuffer *buffer_ptr )

Description

Returns the number of bytes which can be written to from misBuffer

_misBufferIsEmpty

Returns a value other than 0 [zero] if misBuffer is empty

Syntax

#include <mis/Buffer.h>
_misBufferIsEmpty( MisBuffer *buffer_ptr )

Description

Returns a value other than 0 [zero] if misBuffer is empty

_misBufferIsFull

Returns a value other than 0 [zero] if misBuffer is full

Syntax

#include <mis/Buffer.h>
_misBufferIsFull( MisBuffer *buffer_ptr )

Description

Returns a value other than 0 [zero] if misBuffer is full

_misBufferGetCursor

Returns the position of the get cursor in misBuffer

Syntax

#include <mis/Buffer.h>
_misBufferGetCursor( MisBuffer *buffer_ptr )

Description

Returns the position of the get cursor in misBuffer

_misBufferPutCursor

Returns the position of the put cursor in misBuffer

Syntax

#include <mis/Buffer.h>
_misBufferPutCursor( MisBuffer *buffer_ptr )

Description

Returns the position of the put cursor in misBuffer

_misBufferGetPtr

Returns the pointer for the position of the get cursor in misBuffer

Syntax

#include <mis/Buffer.h>
_misBufferGetPtr( MisBuffer *buffer_ptr )

Description

Returns the pointer for the position of the get cursor in misBuffer

_misBufferPutPtr

Returns the pointer for the position of the put cursor in misBuffer

Syntax

#include <mis/Buffer.h>
_misBufferPutPtr( MisBuffer *buffer_ptr )

Description

Returns the pointer for the position of the put cursor in misBuffer

_misBufferPeek

Gets the byte at the position of the get cursor

Syntax

#include <mis/Buffer.h>
_misBufferPeek( MisBuffer *buffer_ptr )

Description

Gets the byte at the position of the get cursor

_misBufferMoveGetCursor

Advances the get cursor by count

Syntax

#include <mis/Buffer.h>
_misBufferMoveGetCursor( MisBuffer *buffer_ptr, u32 count )

Description

Advances the get cursor by count

_misBufferMovePutCursor

Advances the put cursor by count

Syntax

#include <mis/Buffer.h>
_misBufferMovePutCursor( MisBuffer *buffer_ptr, u32 count )

Description

Advances the put cursor by count