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

fzrt_endian_swap_2_bytes

Description

Swaps byte order of 2 bytes. This is useful for switching between endian byte order of a 2 byte value

Plugin Prototype

fzrt_error_td fzrt_endian_swap_2_bytes(

void *

data )

Parameters

data [Input, Result]

pointer to 2 bytes to swap, contains swapped value on exit

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