a0FPack()

Packs data into a buffer.


Syntax

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

Arguments

Namerd/wrDescription
buffer write Buffer descriptor to pack into.
format read Format of the elements to pack.
address read Address of the data.
count read Number of elements to pack.

Description

Packs into buffer the count elements of format format who start at memory 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 pack all data.
A0ErrOkSuccessful completion.

See Also

a0FUnpack() a0FPackPosition() a0UseFormats() a0NewMapFormat() a0NewFunctionFormat() a0NewBuffer() a0ClearBuffer() a0SendBuffer() a0ReceiveBuffer() a0ISendBuffer() a0IReceiveBuffer()