safe

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bytes

type Bytes struct{}

Bytes byte provider that does not use unsafe

func (Bytes) FromF32

func (Bytes) FromF32(src []float32, dst []byte, bigEndian bool) int

FromF32 copy bytes from []float32

func (Bytes) FromF64

func (Bytes) FromF64(src []float64, dst []byte, bigEndian bool) int

FromF64 copy bytes from []float64

func (Bytes) FromI16

func (Bytes) FromI16(src []int16, dst []byte, bigEndian bool) int

FromI16 copy bytes from []int16

func (Bytes) FromI32

func (Bytes) FromI32(src []int32, dst []byte, bigEndian bool) int

FromI32 copy bytes from []int32

func (Bytes) FromI64

func (Bytes) FromI64(src []int64, dst []byte, bigEndian bool) int

FromI64 copy bytes from []int64

func (Bytes) FromI8

func (Bytes) FromI8(src []int8, dst []byte) int

FromI8 copy bytes from []int8

func (Bytes) FromSlice

func (b Bytes) FromSlice(i interface{}, dst []byte, bigEndian bool) (n int, err error)

FromSlice copy byte from `i` into `dst`

func (Bytes) FromU16

func (Bytes) FromU16(src []uint16, dst []byte, bigEndian bool) int

FromU16 copy bytes from []uint16

func (Bytes) FromU32

func (Bytes) FromU32(src []uint32, dst []byte, bigEndian bool) int

FromU32 copy bytes from []uint32

func (Bytes) FromU64

func (Bytes) FromU64(src []uint64, dst []byte, bigEndian bool) int

FromU64 copy bytes from []uint64

func (Bytes) FromValue

func (b Bytes) FromValue(src reflect.Value, dst []byte, bigEndian bool) (n int, err error)

FromValue copy from value

func (Bytes) ToF32

func (Bytes) ToF32(src []byte, dst []float32, bigEndian bool) int

ToF32 copy bytes to []float32

func (Bytes) ToF64

func (Bytes) ToF64(src []byte, dst []float64, bigEndian bool) int

ToF64 copy bytes to []float64

func (Bytes) ToI16

func (Bytes) ToI16(src []byte, dst []int16, bigEndian bool) int

ToI16 copy bytes to []int16

func (Bytes) ToI32

func (Bytes) ToI32(src []byte, dst []int32, bigEndian bool) int

ToI32 copy bytes to []int32

func (Bytes) ToI64

func (Bytes) ToI64(src []byte, dst []int64, bigEndian bool) int

ToI64 copy bytes to []int64

func (Bytes) ToI8

func (Bytes) ToI8(src []byte, dst []int8) int

ToI8 copy bytes to []int8

func (Bytes) ToSlice

func (b Bytes) ToSlice(src []byte, i interface{}, bigEndian bool) (n int, err error)

ToSlice copy byte from `src` into `i`

func (Bytes) ToU16

func (Bytes) ToU16(src []byte, dst []uint16, bigEndian bool) int

ToU16 copy bytes to []uint16

func (Bytes) ToU32

func (Bytes) ToU32(src []byte, dst []uint32, bigEndian bool) int

ToU32 copy bytes to []uint32

func (Bytes) ToU64

func (Bytes) ToU64(src []byte, dst []uint64, bigEndian bool) int

ToU64 copy bytes to []uint64

func (Bytes) ToValue

func (b Bytes) ToValue(src []byte, dst reflect.Value, bigEndian bool) (n int, err error)

ToValue copy from value

Jump to

Keyboard shortcuts

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