Documentation ¶
Index ¶
- Constants
- Variables
- func Add(ptr unsafe.Pointer, off uintptr) unsafe.Pointer
- func BytesFrom(p unsafe.Pointer, n int, c int) (r []byte)
- func CanSizeResue(cap int) bool
- func ClearMemory(et *GoType, ptr unsafe.Pointer, size uintptr)
- func ConvTBool(val bool, ep *interface{})
- func DecodeBase64(raw []byte) ([]byte, error)
- func EncodeBase64(src []byte) string
- func FuncAddr(f interface{}) unsafe.Pointer
- func GcWriteBarrier2()
- func GcwbAddr() uintptr
- func Get16(v []byte) int16
- func Get32(v []byte) int32
- func Get64(v []byte) int64
- func GuardSlice(buf *[]byte, n int)
- func GuardSlice2(buf []byte, n int) []byte
- func IndexByte(ptr []byte, index int) unsafe.Pointer
- func IndexChar(src string, index int) unsafe.Pointer
- func IsMapfast(vt reflect.Type) bool
- func IsValidNumber(s string) bool
- func Makemap(*GoType, int) unsafe.Pointer
- func Mallocgc(size uintptr, typ *GoType, needzero bool) unsafe.Pointer
- func Mapassign(t *GoMapType, h unsafe.Pointer, k unsafe.Pointer) unsafe.Pointer
- func Mapassign_fast32(t *GoMapType, h unsafe.Pointer, k uint32) unsafe.Pointer
- func Mapassign_fast64(t *GoMapType, h unsafe.Pointer, k uint64) unsafe.Pointer
- func Mapassign_faststr(t *GoMapType, h unsafe.Pointer, s string) unsafe.Pointer
- func Mapiterinit(t *GoMapType, m *GoMap, it *GoMapIterator)
- func Mapiternext(it *GoMapIterator)
- func Mem2Str(v []byte) (s string)
- func MemclrHasPointers(ptr unsafe.Pointer, n uintptr)
- func MemclrNoHeapPointers(ptr unsafe.Pointer, n uintptr)
- func Memmove(to unsafe.Pointer, from unsafe.Pointer, n uintptr)
- func MoreStack(size uintptr)
- func NoEscape(p unsafe.Pointer) unsafe.Pointer
- func PackInt(v int) uint64
- func Ptr2SlicePtr(s unsafe.Pointer, l int, c int) unsafe.Pointer
- func PtrAdd(ptr unsafe.Pointer, offset uintptr) unsafe.Pointer
- func Str2Mem(s string) (v []byte)
- func StrFrom(p unsafe.Pointer, n int64) (s string)
- func StrPtr(s string) unsafe.Pointer
- func UnpackInt(v uint64) int
- type BitVec
- type Bitmap
- 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
- func (self *GoType) Indirect() bool
- func (t *GoType) IsInt32() bool
- func (t *GoType) IsInt64() bool
- func (self *GoType) IsNamed() bool
- func (t *GoType) IsUint32() bool
- func (t *GoType) IsUint64() bool
- func (self *GoType) Kind() reflect.Kind
- func (self *GoType) Pack() (t reflect.Type)
- func (self *GoType) String() string
- type Map32Assign
- type Map64Assign
- type MapStrAssign
- type SlicePool
- type StackMap
- type StackMapBuilder
- type T64Pool
- type TslicePool
- type TstringPool
Constants ¶
View Source
const ( F_direct = 1 << 5 F_kind_mask = (1 << 5) - 1 )
GoType.KindFlags const
View Source
const ( MinInt48 int64 = -(1 << 47) MaxInt48 int64 = +(1 << 47) - 1 )
Variables ¶
View Source
var ( BoolType = UnpackType(reflect.TypeOf(false)) ByteType = UnpackType(reflect.TypeOf(byte(0))) IncntType = UnpackType(reflect.TypeOf(int(0))) Int8Type = UnpackType(reflect.TypeOf(int8(0))) Int16Type = UnpackType(reflect.TypeOf(int16(0))) Int32Type = UnpackType(reflect.TypeOf(int32(0))) Int64Type = UnpackType(reflect.TypeOf(int64(0))) UintType = UnpackType(reflect.TypeOf(uint(0))) Uint8Type = UnpackType(reflect.TypeOf(uint8(0))) Uint16Type = UnpackType(reflect.TypeOf(uint16(0))) Uint32Type = UnpackType(reflect.TypeOf(uint32(0))) Uint64Type = UnpackType(reflect.TypeOf(uint64(0))) Float32Type = UnpackType(reflect.TypeOf(float32(0))) Float64Type = UnpackType(reflect.TypeOf(float64(0))) StringType = UnpackType(reflect.TypeOf("")) BytesType = UnpackType(reflect.TypeOf([]byte(nil))) JsonNumberType = UnpackType(reflect.TypeOf(json.Number(""))) SliceEfaceType = UnpackType(reflect.TypeOf([]interface{}(nil))) SliceStringType = UnpackType(reflect.TypeOf([]string(nil))) SliceI32Type = UnpackType(reflect.TypeOf([]int32(nil))) SliceI64Type = UnpackType(reflect.TypeOf([]int64(nil))) SliceU32Type = UnpackType(reflect.TypeOf([]uint32(nil))) SliceU64Type = UnpackType(reflect.TypeOf([]uint64(nil))) AnyType = UnpackType(reflect.TypeOf((*interface{})(nil)).Elem()) MapEfaceType = UnpackType(reflect.TypeOf(map[string]interface{}(nil))) MapStringType = UnpackType(reflect.TypeOf(map[string]string(nil))) MapEfaceMapType = MapType(UnpackType(reflect.TypeOf(map[string]interface{}(nil)))) )
View Source
var EmptySlice = *(*GoSlice)(unsafe.Pointer(&emptyBytes))
View Source
var Hex = "0123456789abcdef"
View Source
var RuntimeWriteBarrier uintptr
View Source
var SafeSet = [utf8.RuneSelf]bool{ ' ': true, '!': true, '"': false, '#': true, '$': true, '%': true, '&': true, '\'': true, '(': true, ')': true, '*': true, '+': true, ',': true, '-': true, '.': true, '/': true, '0': true, '1': true, '2': true, '3': true, '4': true, '5': true, '6': true, '7': true, '8': true, '9': true, ':': true, ';': true, '<': true, '=': true, '>': true, '?': true, '@': true, 'A': true, 'B': true, 'C': true, 'D': true, 'E': true, 'F': true, 'G': true, 'H': true, 'I': true, 'J': true, 'K': true, 'L': true, 'M': true, 'N': true, 'O': true, 'P': true, 'Q': true, 'R': true, 'S': true, 'T': true, 'U': true, 'V': true, 'W': true, 'X': true, 'Y': true, 'Z': true, '[': true, '\\': false, ']': true, '^': true, '_': true, '`': true, 'a': true, 'b': true, 'c': true, 'd': true, 'e': true, 'f': true, 'g': true, 'h': true, 'i': true, 'j': true, 'k': true, 'l': true, 'm': true, 'n': true, 'o': true, 'p': true, 'q': true, 'r': true, 's': true, 't': true, 'u': true, 'v': true, 'w': true, 'x': true, 'y': true, 'z': true, '{': true, '|': true, '}': true, '~': true, '\u007f': true, }
Functions ¶
func DecodeBase64 ¶
func EncodeBase64 ¶
func GcWriteBarrier2 ¶
func GcWriteBarrier2()
func GuardSlice ¶
func GuardSlice2 ¶
func IsValidNumber ¶
func Mapassign_fast32 ¶
func Mapassign_fast64 ¶
func Mapassign_faststr ¶
func Mapiterinit ¶
func Mapiterinit(t *GoMapType, m *GoMap, it *GoMapIterator)
func Mapiternext ¶
func Mapiternext(it *GoMapIterator)
func MemclrHasPointers ¶
func MemclrNoHeapPointers ¶
Types ¶
type Bitmap ¶
func (*Bitmap) AppendMany ¶
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 GoSlice ¶
type GoStructField ¶
type GoStructType ¶
type GoStructType struct { GoType Pkg *byte Fields []GoStructField }
type GoType ¶
type GoType struct { Size uintptr PtrData uintptr Hash uint32 Flags uint8 Align uint8 FieldAlign uint8 KindFlags uint8 Traits unsafe.Pointer GCData *byte Str int32 PtrToSelf int32 }
func UnpackType ¶
type Map32Assign ¶
func GetMap32Assign ¶
func GetMap32Assign(vt reflect.Type) Map32Assign
type Map64Assign ¶
func GetMap64Assign ¶
func GetMap64Assign(vt reflect.Type) Map64Assign
type MapStrAssign ¶
func GetMapStrAssign ¶
func GetMapStrAssign(vt reflect.Type) MapStrAssign
type StackMap ¶
func (*StackMap) MarshalBinary ¶
type StackMapBuilder ¶
type StackMapBuilder struct {
// contains filtered or unexported fields
}
func (*StackMapBuilder) AddField ¶
func (self *StackMapBuilder) AddField(ptr bool)
func (*StackMapBuilder) AddFields ¶
func (self *StackMapBuilder) AddFields(n int, ptr bool)
func (*StackMapBuilder) Build ¶
func (self *StackMapBuilder) Build() (p *StackMap)
type TslicePool ¶
type TslicePool struct {
// contains filtered or unexported fields
}
func NewTslicePool ¶
func NewTslicePool(hint int) TslicePool
func (*TslicePool) Conv ¶
func (self *TslicePool) Conv(val GoSlice, typ *GoType, ep *interface{})
func (*TslicePool) Free ¶
func (self *TslicePool) Free()
type TstringPool ¶
type TstringPool struct {
// contains filtered or unexported fields
}
func NewTstringPool ¶
func NewTstringPool(hint int) TstringPool
func (*TstringPool) Conv ¶
func (self *TstringPool) Conv(val string, ep *interface{})
func (*TstringPool) ConvNum ¶
func (self *TstringPool) ConvNum(val json.Number, ep *interface{})
func (*TstringPool) Free ¶
func (self *TstringPool) Free()
Click to show internal directories.
Click to hide internal directories.