Content-type: text/html
cc [ flag... ] file... -lmlib [ library... ] #include <mlib.h> mlib_status mlib_VectorReverseByteOrder(void *z, const void *x, mlib_s32 n, mlib_s32 s);
The mlib_VectorReverseByteOrder() function changes the encoding of each element from big endian to little endian, or from little endian to big endian.
It copies and reverses the byte order of each element of the input vector into the output vector.
The function takes the following arguments:
z
x
n
s
The function returns MLIB_SUCCESS if successful. Otherwise it returns MLIB_FAILURE.
See attributes(5) for descriptions of the following attributes:
|
mlib_VectorReverseByteOrder_Inp(3MLIB), mlib_VectorReverseByteOrder_S16(3MLIB), mlib_VectorReverseByteOrder_S16_S16(3MLIB), attributes(5)