internal/lib/reflect: call.method

This commit is contained in:
visualfc
2024-11-05 10:17:33 +08:00
parent 7bbd3a7e36
commit df2e34ac51
6 changed files with 5303 additions and 4511 deletions

View File

@@ -388,11 +388,16 @@ func (t *Type) IfaceIndir() bool {
return t.Kind_&KindDirectIface == 0
}
// isDirectIface reports whether t is stored directly in an interface value.
// IsDirectIface reports whether t is stored directly in an interface value.
func (t *Type) IsDirectIface() bool {
return t.Kind_&KindDirectIface != 0
}
// IsClosure reports whether t is closure struct
func (t *Type) IsClosure() bool {
return t.TFlag&TFlagClosure != 0
}
// Size returns the size of data with type t.
func (t *Type) Size() uintptr { return t.Size_ }