a0FUnpack()

Unpacks data from a buffer.


Syntax

a0tError a0FUnpack(
a0tBuffer *buffer,
a0tFormat *format,
void *address,
int count );

Arguments

Namerd/wrDescription
buffer read Buffer descriptor to unpack from.
format read Format of the elements to unpack.
address write Address to unpack to.
count read Number of elements to unpack.

Description

Unpacks from buffer the first count elements of format format and stores in memory, starting at address address.


Return Values

If an error condition occurs, it returns the error code, otherwise it returns A0ErrOk. Possible values are as follows:
Error CodeDescription
A0ErrFailPack It was not possible to unpack all data.
A0ErrOkSuccessful completion.

See Also

a0FPack() a0FUnpackPosition() a0UseFormats() a0NewMapFormat() a0NewFunctionFormat() a0NewBuffer() a0ClearBuffer() a0SendBuffer() a0ReceiveBuffer() a0ISendBuffer() a0IReceiveBuffer()