Documentation ¶
Index ¶
- Variables
- func Assign(location, value reflect.Value)
- func BoolSlice(i interface{}) []bool
- func ByteCopy(d interface{}, s interface{})
- func ByteSlice(i interface{}) []byte
- func Catch(f func())
- func CatchAll(f func())
- func Compatible(l, r interface{}) (b bool)
- func Complex128Slice(i interface{}) []complex128
- func Complex64Slice(i interface{}) []complex64
- func ConcreteValue(value interface{}) (r reflect.Value)
- func DataAddress(b []byte) (p unsafe.Pointer)
- func Float32Slice(i interface{}) []float32
- func Float64Slice(i interface{}) []float64
- func Int16Slice(i interface{}) []int16
- func Int32Slice(i interface{}) []int32
- func Int64Slice(i interface{}) []int64
- func Int8Slice(i interface{}) []int8
- func IntSlice(i interface{}) []int
- func InterfaceSlice(i interface{}) []interface{}
- func MakeAddressable(value reflect.Value) reflect.Value
- func PointerSlice(i interface{}) []unsafe.Pointer
- func Reslice(slice interface{}, sliceType reflect.Type, elementSize int) interface{}
- func Scale(oldHeader *reflect.SliceHeader, oldElementSize, newElementSize int) (h *reflect.SliceHeader)
- func SliceHeader(i interface{}) (Header *reflect.SliceHeader, ElementSize, ElementAlignment int)
- func Throw()
- func Type(v interface{}) (r reflect.Type)
- func Uint16Slice(i interface{}) []uint16
- func Uint32Slice(i interface{}) []uint32
- func Uint64Slice(i interface{}) []uint64
- func Uint8Slice(i interface{}) []uint8
- func UintSlice(i interface{}) []uint
- func UintptrSlice(i interface{}) []uintptr
- type BasicType
- type MemoryBlock
- type Typed
Constants ¶
This section is empty.
Variables ¶
View Source
var BOOLEAN = RegisterType("bool", true, []bool{})
View Source
var BYTE = RegisterType("byte", byte(0), []byte{})
View Source
var COMPLEX128 = RegisterType("complex128", complex128(0), []complex128{})
View Source
var COMPLEX64 = RegisterType("complex64", complex64(0), []complex64{})
View Source
var FLOAT32 = RegisterType("float32", float32(0.0), []float32{})
View Source
var FLOAT64 = RegisterType("float64", float64(0.0), []float64{})
View Source
var INT = RegisterType("int", int(0), []int{})
View Source
var INT16 = RegisterType("int16", int16(0), []int16{})
View Source
var INT32 = RegisterType("int32", int32(0), []int32{})
View Source
var INT64 = RegisterType("int64", int64(0), []int64{})
View Source
var INT8 = RegisterType("int8", int8(0), []int8{})
View Source
var INTERFACE = RegisterType("interface{}", _a, []interface{}{})
View Source
var POINTER = RegisterType("unsafe.Pointer", unsafe.Pointer(&_a), []unsafe.Pointer{})
View Source
var UINT = RegisterType("uint", uint(0), []uint{})
View Source
var UINT16 = RegisterType("uint16", uint16(0), []uint16{})
View Source
var UINT32 = RegisterType("uint32", uint32(0), []uint32{})
View Source
var UINT64 = RegisterType("uint64", uint64(0), []uint64{})
View Source
var UINT8 = RegisterType("uint8", uint8(0), []uint8{})
View Source
var UINTPTR = RegisterType("uintptr", uintptr(0), []uintptr{})
Functions ¶
func Compatible ¶
func Compatible(l, r interface{}) (b bool)
func Complex128Slice ¶
func Complex128Slice(i interface{}) []complex128
func Complex64Slice ¶
func Complex64Slice(i interface{}) []complex64
func ConcreteValue ¶
func DataAddress ¶
func Float32Slice ¶
func Float32Slice(i interface{}) []float32
func Float64Slice ¶
func Float64Slice(i interface{}) []float64
func Int16Slice ¶
func Int16Slice(i interface{}) []int16
func Int32Slice ¶
func Int32Slice(i interface{}) []int32
func Int64Slice ¶
func Int64Slice(i interface{}) []int64
func InterfaceSlice ¶
func InterfaceSlice(i interface{}) []interface{}
func PointerSlice ¶
func Scale ¶
func Scale(oldHeader *reflect.SliceHeader, oldElementSize, newElementSize int) (h *reflect.SliceHeader)
func SliceHeader ¶
func SliceHeader(i interface{}) (Header *reflect.SliceHeader, ElementSize, ElementAlignment int)
func Uint16Slice ¶
func Uint16Slice(i interface{}) []uint16
func Uint32Slice ¶
func Uint32Slice(i interface{}) []uint32
func Uint64Slice ¶
func Uint64Slice(i interface{}) []uint64
func Uint8Slice ¶
func Uint8Slice(i interface{}) []uint8
func UintptrSlice ¶
func UintptrSlice(i interface{}) []uintptr
Types ¶
type BasicType ¶
type BasicType struct {
// contains filtered or unexported fields
}
func RegisterType ¶
type MemoryBlock ¶
type MemoryBlock interface {
ByteSlice() []byte
}
A Buffered object can present itself as a byteslice. This byteslice can then be manipulated directly to modify the contents of memory. Use with extreme caution.
Click to show internal directories.
Click to hide internal directories.