Documentation
¶
Index ¶
- Variables
- func (t *Type) Comparable() bool
- func CopyStruct(dst, src *js.Object, typ *Type)
- func (t *Type) GcSlice(begin, end uintptr) []byte
- func IfaceE2I(t *Type, src any, dst unsafe.Pointer)
- func (typ *Type) IsWrapped() bool
- func (typ *Type) JsPtrTo() *js.Object
- func (typ *Type) JsType() *js.Object
- func (typ *Type) NameOff(off NameOff) Name
- func (typ *Type) PtrTo() *Type
- func ReflectType(typ *js.Object) *Type
- func (t *Type) String() string
- func (typ *Type) TextOff(off TextOff) unsafe.Pointer
- func (typ *Type) TypeOff(off TypeOff) *Type
- func TypedMemMove(t *Type, dst, src unsafe.Pointer)
- func (t *Type) Uncommon() *UncommonType
- func UnsafeNew(typ *Type) unsafe.Pointer
- func UnwrapJsObject(typ *Type, val *js.Object) *js.Object
- func WrapJsObject(typ *Type, val *js.Object) *js.Object
- type FuncType
- type Name
- func (n Name) Data(off int) *byte
- func (n Name) DataChecked(off int, whySafe string) *byte
- func (n Name) HasTag() bool
- func (n Name) IsBlank() bool
- func (n Name) IsEmbedded() bool
- func (n Name) IsExported() bool
- func (n Name) Name() string
- func (n Name) PkgPath() string
- func (n Name) ReadVarint(off int) (int, int)
- func (n *Name) SetPkgPath(pkgpath string)
- func (n Name) Tag() string
- type NameOff
- type TextOff
- type TypeOff
- type UncommonType
Constants ¶
This section is empty.
Variables ¶
var JsObjectPtr = ReflectType(js.Global.Get("$jsObjectPtr"))
Functions ¶
func (*Type) Comparable ¶
func (t *Type) Comparable() bool
func CopyStruct ¶
func (*Type) NameOff ¶
GOPHERJS: Added to mirror the rtype's nameOff method to keep how the nameOff is created and read in one spot of the code.
func ReflectType ¶
func (*Type) TextOff ¶
GOPHERJS: Added to mirror the rtype's textOff method to keep how the textOff is created and read in one spot of the code.
func (*Type) TypeOff ¶
func (typ *Type) TypeOff(off TypeOff) *Type
GOPHERJS: Added to mirror the rtype's typeOff method to keep how the typeOff is created and read in one spot of the code.
func TypedMemMove ¶
func (*Type) Uncommon ¶
func (t *Type) Uncommon() *UncommonType
Types ¶
type FuncType ¶
type Name ¶
type Name struct {
// contains filtered or unexported fields
}
func (Name) IsEmbedded ¶
func (Name) IsExported ¶
func (*Name) SetPkgPath ¶
type NameOff ¶
type NameOff *Name
GOPHERJS: Instead of using this as an offset from a pointer to look up a name, just store the name as a pointer.
func ResolveReflectName ¶
GOPHERJS: Added to mirror the resolveReflectName method in reflect
type TextOff ¶
GOPHERJS: Instead of using this as an offset from a pointer to look up a pointer, just store the paointer itself.
func ResolveReflectText ¶
GOPHERJS: Added to mirror the resolveReflectText method in reflect
type TypeOff ¶
type TypeOff *Type
GOPHERJS: Instead of using this as an offset from a pointer to look up a type, just store the type as a pointer.
func ResolveReflectType ¶
func ResolveReflectType(t *Type) TypeOff
GOPHERJS: Added to mirror the resolveReflectType method in reflect
type UncommonType ¶
type UncommonType struct {
PkgPath NameOff // import path
Mcount uint16 // method count
Xcount uint16 // exported method count
// GOPHERJS: Added access to methods
Methods_ []Method
}
func (*UncommonType) ExportedMethods ¶
func (t *UncommonType) ExportedMethods() []Method
func (*UncommonType) Methods ¶
func (t *UncommonType) Methods() []Method