Documentation ¶
Overview ¶
Package endian provides helper functions to deal with network byte order.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HostToNetUint16 ¶
HostToNetUint16 swaps the bytes of the given value (if necessary) to turn them from network byte order to host byte order.
func HostToNetUint32 ¶
HostToNetUint32 swaps the bytes of the given value (if necessary) to turn them from network byte order to host byte order.
func HostToNetUint64 ¶
HostToNetUint64 swaps the bytes of the given value (if necessary) to turn them from network byte order to host byte order.
func NetToHostUint16 ¶
NetToHostUint16 swaps the bytes of the given value (if necessary) to turn them from network byte order to host byte order.
func NetToHostUint32 ¶
NetToHostUint32 swaps the bytes of the given value (if necessary) to turn them from network byte order to host byte order.
func NetToHostUint64 ¶
NetToHostUint64 swaps the bytes of the given value (if necessary) to turn them from network byte order to host byte order.
Types ¶
This section is empty.