Documentation ¶
Index ¶
- func AsByteSlice(x interface{}) []byte
- func Copy(t reflect.Type, dst, src *Header) int
- func CopyIter(t reflect.Type, dst, src *Header, diter, siter Iterator) int
- func CopySliced(t reflect.Type, dst *Header, dstart, dend int, src *Header, sstart, send int) int
- func ElementAt(i int, base unsafe.Pointer, typeSize uintptr) unsafe.Pointer
- func Fill(t reflect.Type, dst, src *Header) int
- func FromMemory(ptr uintptr, memsize uintptr) []byte
- type Header
- func (h *Header) Bools() []bool
- func (h *Header) Complex128s() []complex128
- func (h *Header) Complex64s() []complex64
- func (h *Header) Float32s() []float32
- func (h *Header) Float64s() []float64
- func (h *Header) GetB(i int) bool
- func (h *Header) GetC128(i int) complex128
- func (h *Header) GetC64(i int) complex64
- func (h *Header) GetF32(i int) float32
- func (h *Header) GetF64(i int) float64
- func (h *Header) GetI(i int) int
- func (h *Header) GetI16(i int) int16
- func (h *Header) GetI32(i int) int32
- func (h *Header) GetI64(i int) int64
- func (h *Header) GetI8(i int) int8
- func (h *Header) GetStr(i int) string
- func (h *Header) GetU(i int) uint
- func (h *Header) GetU16(i int) uint16
- func (h *Header) GetU32(i int) uint32
- func (h *Header) GetU64(i int) uint64
- func (h *Header) GetU8(i int) uint8
- func (h *Header) GetUintptr(i int) uintptr
- func (h *Header) GetUnsafePointer(i int) unsafe.Pointer
- func (h *Header) Int16s() []int16
- func (h *Header) Int32s() []int32
- func (h *Header) Int64s() []int64
- func (h *Header) Int8s() []int8
- func (h *Header) Ints() []int
- func (h *Header) SetB(i int, x bool)
- func (h *Header) SetC128(i int, x complex128)
- func (h *Header) SetC64(i int, x complex64)
- func (h *Header) SetF32(i int, x float32)
- func (h *Header) SetF64(i int, x float64)
- func (h *Header) SetI(i int, x int)
- func (h *Header) SetI16(i int, x int16)
- func (h *Header) SetI32(i int, x int32)
- func (h *Header) SetI64(i int, x int64)
- func (h *Header) SetI8(i int, x int8)
- func (h *Header) SetStr(i int, x string)
- func (h *Header) SetU(i int, x uint)
- func (h *Header) SetU16(i int, x uint16)
- func (h *Header) SetU32(i int, x uint32)
- func (h *Header) SetU64(i int, x uint64)
- func (h *Header) SetU8(i int, x uint8)
- func (h *Header) SetUintptr(i int, x uintptr)
- func (h *Header) SetUnsafePointer(i int, x unsafe.Pointer)
- func (h *Header) Strings() []string
- func (h *Header) TypedLen(t reflect.Type) int
- func (h *Header) Uint16s() []uint16
- func (h *Header) Uint32s() []uint32
- func (h *Header) Uint64s() []uint64
- func (h *Header) Uint8s() []uint8
- func (h *Header) Uintptrs() []uintptr
- func (h *Header) Uints() []uint
- func (h *Header) UnsafePointers() []unsafe.Pointer
- type Iterator
- type NoOpError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AsByteSlice ¶
func AsByteSlice(x interface{}) []byte
AsByteSlice takes a slice of anything and returns a casted-as-byte-slice view of it. This function panics if input is not a slice.
func CopySliced ¶
func FromMemory ¶ added in v0.9.15
Types ¶
type Header ¶
type Header struct {
Raw []byte
}
Header is runtime representation of a slice. It's a cleaner version of reflect.SliceHeader. With this, we wouldn't need to keep the uintptr. This usually means additional pressure for the GC though, especially when passing around Headers
func (*Header) Complex128s ¶
func (h *Header) Complex128s() []complex128
func (*Header) Complex64s ¶
func (*Header) GetC128 ¶
func (h *Header) GetC128(i int) complex128
func (*Header) GetUintptr ¶
func (*Header) SetC128 ¶
func (h *Header) SetC128(i int, x complex128)
func (*Header) SetUintptr ¶
func (*Header) UnsafePointers ¶
Click to show internal directories.
Click to hide internal directories.