a0GetPackedSize()

Gets size of packed data.


Syntax

a0tError a0GetPackedSize(
a0tDatatype datatype,
size_t *size );

Arguments

Namerd/wrDescription
datatype read Datatype to get the size.
source write Size of the datatype when packed.

Description

This function calculates the amount of bytes needed to pack a given datatype. It is useful to build buffers with enough space to pack all data nedded into it.

On return of this function, the variable pointed by size contains the packed size of datatype.


Return Values

If an error condition occurs, it returns the error code, otherwise it returns A0ErrOk. Possible values are as follows:
Error CodeDescription
A0Err...Some error occurred.
A0ErrOkSuccessful completion.

See Also

a0Receive() a0IReceive() a0ReceiveBuffer() a0IReceiveBuffer() a0WaitRequest()