byteorder

package
v1.31.1 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func HostToNetwork16

func HostToNetwork16(u uint16) uint16

func HostToNetwork32

func HostToNetwork32(u uint32) uint32

func NetIPv4ToHost32

func NetIPv4ToHost32(ip net.IP) uint32

NetIPv4ToHost32 converts a net.IP to an uint32 in host byte order. ip must be a IPv4 address, otherwise the function will panic.

func NetworkToHost16

func NetworkToHost16(u uint16) uint16

func NetworkToHost32

func NetworkToHost32(u uint32) uint32

Types

This section is empty.

Jump to

Keyboard shortcuts

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