byteorder

package
v0.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 21, 2017 License: Apache-2.0 Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package byteorder provides functions to convert from and to network byte order.

Index

Constants

This section is empty.

Variables

View Source
var Native = nl.NativeEndian()

Native is set to the host ByteOrder type. This should normally be either BigEndian or LittleEndian.

Functions

func HostSliceToNetwork

func HostSliceToNetwork(b []byte, t reflect.Kind) interface{}

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

func HostToNetworkSlice(b []byte, t reflect.Kind) interface{}

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL