formZ SDK | 5.0 API Reference | System | Runtime Library (FZRT) | Memory

fzrt_endian_swap_n_bytes

Description

Swaps byte order of array of bytes This is useful for switching between endian byte order of any integer size.

Plugin Prototype

fzrt_error_td fzrt_endian_swap_n_bytes(

void *

data,

short

num_bytes )

Parameters

data [Input, Result]

pointer to array of bytes to swap, contains swapped values on exit

num_bytes [Input]

number of bytes to swap

Returns

FZRT_NOERR on success, otherwise an error ID

Availability

5.0.0.0

See Also

fzrt_endian_swap_4_bytes,

Function Set

fz_fzrt_mem_fset


Defined in

fzrt_api.h