CANCapture Scripting
Public Member Functions | List of all members
asIBinaryStream Class Referenceabstract

A binary stream interface. More...

Public Member Functions

virtual void Read (void *ptr, asUINT size)=0
 Read size bytes from the stream into the memory pointed to by ptr. More...
 
virtual void Write (const void *ptr, asUINT size)=0
 Write size bytes to the stream from the memory pointed to by ptr. More...
 

Detailed Description

This interface is used when storing compiled bytecode to disk or memory, and then loading it into the engine again.

See Also
asIScriptEngine::SaveByteCode, asIScriptEngine::LoadByteCode

Member Function Documentation

virtual void asIBinaryStream::Read ( void *  ptr,
asUINT  size 
)
pure virtual
Parameters
[out]ptrA pointer to the buffer that will receive the data.
[in]sizeThe number of bytes to read.

Read size bytes from the data stream into the memory pointed to by ptr.

virtual void asIBinaryStream::Write ( const void *  ptr,
asUINT  size 
)
pure virtual
Parameters
[in]ptrA pointer to the buffer that the data should written from.
[in]sizeThe number of bytes to write.

Write size bytes to the data stream from the memory pointed to by ptr.