slice

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2019 License: GPL-2.0 Imports: 1 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsInt16

func AsInt16(bytes *[]byte) *int16

func AsInt32

func AsInt32(bytes *[]byte) *int32

func AsInt64

func AsInt64(bytes *[]byte) *int64

func AsUint16

func AsUint16(bytes *[]byte) *uint16

func AsUint32

func AsUint32(bytes *[]byte) *uint32

func AsUint64

func AsUint64(bytes *[]byte) *uint64

func Int32AsSlice

func Int32AsSlice(i *int32) []byte

func Int64AsSlice

func Int64AsSlice(i *int64) []byte

func Uint64AsSlice

func Uint64AsSlice(i *uint64) []byte

Types

type Slice

type Slice struct {
	Array unsafe.Pointer
	Len   int
	Cap   int
}

func AsSlice

func AsSlice(bytes *[]byte) *Slice

func New

func New(sizeInBytes int) *Slice

func (*Slice) AsBytes

func (ss *Slice) AsBytes() *[]byte

func (*Slice) AsFloat32s

func (ss *Slice) AsFloat32s() *[]float32

func (*Slice) AsFloat64s

func (ss *Slice) AsFloat64s() *[]float64

func (*Slice) AsInt16s

func (ss *Slice) AsInt16s() *[]int16

func (*Slice) AsInt32s

func (ss *Slice) AsInt32s() *[]int32

func (*Slice) AsInt64s

func (ss *Slice) AsInt64s() *[]int64

func (*Slice) AsInt8s

func (ss *Slice) AsInt8s() *[]int8

func (*Slice) AsUint16s

func (ss *Slice) AsUint16s() *[]uint16

func (*Slice) AsUint32s

func (ss *Slice) AsUint32s() *[]uint32

func (*Slice) AsUint64s

func (ss *Slice) AsUint64s() *[]uint64

Jump to

Keyboard shortcuts

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