AddToBuffer

Miscellaneous functions

Description

Adds a block of data to the buffer created with the CreateBuffer function.

This function can be called multiple times until the buffer is full. The return value is the number of bytes remaining in the buffer.

Syntax

DLL

int DLAddToBuffer(int InstanceID, const char* Buffer, const char* Source, int SourceLength);

Parameters

BufferA value returned from the CreateBuffer function
SourceA pointer to the first byte of data to add
SourceLengthThe total number of bytes to copy from the source