Documentation ¶
Index ¶
- Constants
- func ByteSliceFromStructSlice(s interface{}) []byte
- func Int16SliceFromByteSlice(b []byte) []int16
- func Int32SliceFromByteSlice(b []byte) []int32
- func Int64SliceFromByteSlice(b []byte) []int64
- func Int8SliceFromByteSlice(b []byte) []int8
- func StructSliceFromByteSlice(b []byte, out interface{})
- func Uint16SliceFromByteSlice(b []byte) []uint16
- func Uint32SliceFromByteSlice(b []byte) []uint32
- func Uint64SliceFromByteSlice(b []byte) []uint64
- func Uint8SliceFromByteSlice(b []byte) []uint8
Constants ¶
View Source
const ( Uint64Size = 8 Uint32Size = 4 Uint16Size = 2 Uint8Size = 1 )
Variables ¶
This section is empty.
Functions ¶
func ByteSliceFromStructSlice ¶
func ByteSliceFromStructSlice(s interface{}) []byte
func Int16SliceFromByteSlice ¶
func Int32SliceFromByteSlice ¶
func Int64SliceFromByteSlice ¶
func Int8SliceFromByteSlice ¶
func StructSliceFromByteSlice ¶
func StructSliceFromByteSlice(b []byte, out interface{})
Create a slice of structs from a slice of bytes.
var v []Struct StructSliceFromByteSlice(bytes, &v)
Elements in the byte array must be padded correctly. See unsafe.AlignOf, et al.
func Uint8SliceFromByteSlice ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.