Documentation ¶
Overview ¶
Package byteorder provides functions to convert from and to network byte order.
Index ¶
- Variables
- func HostSliceToNetwork(b []byte, t reflect.Kind) interface{}
- func HostToNetwork(b interface{}) interface{}
- func HostToNetworkPut(b []byte, v interface{})
- func HostToNetworkSlice(b []byte, t reflect.Kind) interface{}
- func NetworkToHost(n interface{}) interface{}
- func NetworkToHostPut(b []byte, v interface{})
Constants ¶
This section is empty.
Variables ¶
View Source
var Native = getNativeEndian()
Native is set to the host ByteOrder type. This should normally be either BigEndian or LittleEndian.
Functions ¶
func HostSliceToNetwork ¶
HostSliceToNetwork converts b to the networking byte order.
func HostToNetwork ¶
func HostToNetwork(b interface{}) interface{}
HostToNetwork converts b to the networking byte order.
func HostToNetworkPut ¶
func HostToNetworkPut(b []byte, v interface{})
HostToNetworkPut puts v into b with the networking byte order.
func HostToNetworkSlice ¶
HostToNetworkSlice converts b to the networking byte order.
func NetworkToHost ¶
func NetworkToHost(n interface{}) interface{}
NetworkToHost converts n to host byte order.
func NetworkToHostPut ¶
func NetworkToHostPut(b []byte, v interface{})
NetworkToHostPut puts v into b with the networking byte order.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.