ch

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2019 License: Apache-2.0, Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dump

func Dump(typ reflect.Type)

func FieldOf

func FieldOf(typ reflect.Type, name string) *reflect.StructField

func Get16ElementsByteArray

func Get16ElementsByteArray(ptr unsafe.Pointer, field *reflect.StructField) [16]byte

func GetPtr

func GetPtr(ptr unsafe.Pointer, field *reflect.StructField) unsafe.Pointer

func GetUint16

func GetUint16(ptr unsafe.Pointer, field *reflect.StructField) uint16

func GetUint32

func GetUint32(ptr unsafe.Pointer, field *reflect.StructField) uint32

func GetUint8

func GetUint8(ptr unsafe.Pointer, field *reflect.StructField) uint8

func Htonl

func Htonl(i uint32) uint32

func Htons

func Htons(i uint16) uint16

func Int2ip

func Int2ip(nn uint32) net.IP

func Ip2int

func Ip2int(ip net.IP) uint32

func Ntohl

func Ntohl(i uint32) uint32

func Ntohs

func Ntohs(i uint16) uint16

func Set16ElementsByteArray

func Set16ElementsByteArray(ptr unsafe.Pointer, field *reflect.StructField, val [16]byte)

func SetUint16

func SetUint16(ptr unsafe.Pointer, field *reflect.StructField, val uint16)

func SetUint32

func SetUint32(ptr unsafe.Pointer, field *reflect.StructField, val uint32)

Types

This section is empty.

Jump to

Keyboard shortcuts

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