Documentation ¶
Index ¶
- Constants
- func AddPtr(a unsafe.Pointer, b uintptr) unsafe.Pointer
- func BytesFrom(p unsafe.Pointer, n int, c int) (r []byte)
- func Get16(v []byte) int16
- func Get32(v []byte) int32
- func Get64(v []byte) int64
- func GetBytePtr(b []byte) unsafe.Pointer
- func GuardSlice(buf *[]byte, n int)
- func IndexByte(ptr *[]byte, index int) unsafe.Pointer
- func IndexChar(src string, index int) unsafe.Pointer
- func IndexPtr(ptr unsafe.Pointer, size uintptr, index int) unsafe.Pointer
- func IndexSlice(slice unsafe.Pointer, size uintptr, index int) unsafe.Pointer
- func Mem2Str(v []byte) (s string)
- func NoEscape(p unsafe.Pointer) unsafe.Pointer
- func PackInt(v int) uint64
- func PtrOffset(a unsafe.Pointer, b unsafe.Pointer) int
- func Str2Mem(s string) (v []byte)
- func StringFrom(p unsafe.Pointer, n int) (r string)
- func SubPtr(a unsafe.Pointer, b uintptr) unsafe.Pointer
- func UnpackInt(v uint64) int
- type GoEface
- type GoIface
- type GoInterfaceMethod
- type GoInterfaceType
- type GoItab
- type GoMap
- type GoMapIterator
- type GoMapType
- type GoPtrType
- type GoSlice
- type GoString
- type GoStructField
- type GoStructType
- type GoType
Constants ¶
View Source
const ( F_direct = 1 << 5 F_kind_mask = (1 << 5) - 1 )
View Source
const ( MinInt48 = -(1 << 47) MaxInt48 = +(1 << 47) - 1 )
Variables ¶
This section is empty.
Functions ¶
func GetBytePtr ¶
func GuardSlice ¶
Types ¶
type GoEface ¶
func UnpackEface ¶
func UnpackEface(v interface{}) GoEface
type GoInterfaceMethod ¶
type GoInterfaceType ¶
type GoInterfaceType struct { GoType PkgPath *byte Methods []GoInterfaceMethod }
func IfaceType ¶
func IfaceType(t *GoType) *GoInterfaceType
type GoMapIterator ¶
type GoMapType ¶
type GoMapType struct { GoType Key *GoType Elem *GoType Bucket *GoType Hasher func(unsafe.Pointer, uintptr) uintptr KeySize uint8 ElemSize uint8 BucketSize uint16 Flags uint32 }
func (*GoMapType) IndirectElem ¶
type GoStructField ¶
type GoStructType ¶
type GoStructType struct { GoType Pkg *byte Fields []GoStructField }
Click to show internal directories.
Click to hide internal directories.