Documentation
¶
Index ¶
- Variables
- func BoolSlice(i interface{}) []bool
- func ByteCopy(d interface{}, s interface{})
- func ByteSlice(i interface{}) []byte
- func Complex64Slice(i interface{}) (r []complex64)
- func Complex128Slice(i interface{}) []complex128
- func DataAddress(b []byte) (p unsafe.Pointer)
- func DereferenceAll(v interface{}) interface{}
- func FailIfNotCopyable(f Fatal, v interface{})
- func FailOnAddressMismatch(f Fatal, slice unsafe.Pointer, buf []byte)
- func FailOnBadBufferSize(f Fatal, good_length, good_capacity bool)
- func FailOnHeaderMismatch(f Fatal, slice unsafe.Pointer, buf []byte)
- func Float32Slice(i interface{}) (r []float32)
- func Float64Slice(i interface{}) (r []float64)
- func Int8Slice(i interface{}) []int8
- func Int16Slice(i interface{}) []int16
- func Int32Slice(i interface{}) (r []int32)
- func Int64Slice(i interface{}) (r []int64)
- func IntSlice(i interface{}) []int
- func InterfaceSlice(i interface{}) []interface{}
- func MakeAddressable(v reflect.Value) reflect.Value
- func NewPoint(x, y, z int32) *point
- func PointerSlice(i interface{}) []unsafe.Pointer
- func Reslice(slice interface{}, sliceType reflect.Type) interface{}
- func ResliceOf(t reflect.Type, i interface{}) interface{}
- func Scale(oldHeader *reflect.SliceHeader, oldElementSize, newElementSize uintptr) (h *reflect.SliceHeader)
- func ShallowCopy(v interface{}) (r interface{})
- func SliceHeader(i interface{}) (Header *reflect.SliceHeader, ElementSize, ElementAlignment int)
- func Uint8Slice(i interface{}) []uint8
- func Uint16Slice(i interface{}) []uint16
- func Uint32Slice(i interface{}) (r []uint32)
- func Uint64Slice(i interface{}) (r []uint64)
- func UintSlice(i interface{}) []uint
- func UintptrSlice(i interface{}) []uintptr
- func ValidateNumericByteSlice(f Fatal, value interface{})
- type Fatal
- type MemoryBlock
Constants ¶
This section is empty.
Variables ¶
View Source
var BOOLEAN = reflect.TypeOf(true)
View Source
var BYTE = reflect.TypeOf(byte(0))
View Source
var COMPLEX128 = reflect.TypeOf(complex128(0))
View Source
var COMPLEX64 = reflect.TypeOf(complex64(0))
View Source
var FLOAT32 = reflect.TypeOf(float32(0.0))
View Source
var FLOAT64 = reflect.TypeOf(float64(0.0))
View Source
var INT = reflect.TypeOf(int(0))
View Source
var INT16 = reflect.TypeOf(int16(0))
View Source
var INT32 = reflect.TypeOf(int32(0))
View Source
var INT64 = reflect.TypeOf(int64(0))
View Source
var INT8 = reflect.TypeOf(int8(0))
View Source
var INTERFACE = reflect.TypeOf(_a)
View Source
var POINTER = reflect.TypeOf(unsafe.Pointer(&_a))
View Source
var UINT = reflect.TypeOf(uint(0))
View Source
var UINT16 = reflect.TypeOf(uint16(0))
View Source
var UINT32 = reflect.TypeOf(uint32(0))
View Source
var UINT64 = reflect.TypeOf(uint64(0))
View Source
var UINT8 = reflect.TypeOf(uint8(0))
View Source
var UINTPTR = reflect.TypeOf(uintptr(0))
Functions ¶
func Complex64Slice ¶
func Complex64Slice(i interface{}) (r []complex64)
func Complex128Slice ¶
func Complex128Slice(i interface{}) []complex128
func DataAddress ¶
func DereferenceAll ¶
func DereferenceAll(v interface{}) interface{}
Repeatedly uses *reflect.Indirect* to step through a series of *reflect.Ptr* values and arrive at the concrete value they point to.
func FailIfNotCopyable ¶
func FailIfNotCopyable(f Fatal, v interface{})
func FailOnBadBufferSize ¶
func Float32Slice ¶
func Float32Slice(i interface{}) (r []float32)
func Float64Slice ¶
func Float64Slice(i interface{}) (r []float64)
func Int16Slice ¶
func Int16Slice(i interface{}) []int16
func Int32Slice ¶
func Int32Slice(i interface{}) (r []int32)
func Int64Slice ¶
func Int64Slice(i interface{}) (r []int64)
func InterfaceSlice ¶
func InterfaceSlice(i interface{}) []interface{}
func PointerSlice ¶
func Scale ¶
func Scale(oldHeader *reflect.SliceHeader, oldElementSize, newElementSize uintptr) (h *reflect.SliceHeader)
func ShallowCopy ¶
func ShallowCopy(v interface{}) (r interface{})
Uses reflection to create a *shallow* copy of an existing value. This will only work if the Type of value being copied is *settable* according to the language specification.
func SliceHeader ¶
func SliceHeader(i interface{}) (Header *reflect.SliceHeader, ElementSize, ElementAlignment int)
func Uint8Slice ¶
func Uint8Slice(i interface{}) []uint8
func Uint16Slice ¶
func Uint16Slice(i interface{}) []uint16
func Uint32Slice ¶
func Uint32Slice(i interface{}) (r []uint32)
func Uint64Slice ¶
func Uint64Slice(i interface{}) (r []uint64)
func UintptrSlice ¶
func UintptrSlice(i interface{}) []uintptr
func ValidateNumericByteSlice ¶
func ValidateNumericByteSlice(f Fatal, value interface{})
Types ¶
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.