- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 12 for fieldAlign (0.16 sec)
-
src/unique/clone.go
case abi.Struct: buildStructCloneSeq(etyp, seq, offset) case abi.Array: buildArrayCloneSeq(etyp, seq, offset) } offset += etyp.Size() align := uintptr(etyp.FieldAlign()) offset = (offset + align - 1) &^ (align - 1) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun May 05 00:24:21 UTC 2024 - 2.6K bytes - Viewed (0) -
src/runtime/checkptr.go
return } // Check that (*[n]elem)(p) is appropriately aligned. // Note that we allow unaligned pointers if the types they point to contain // no pointers themselves. See issue 37298. // TODO(mdempsky): What about fieldAlign? if elem.Pointers() && uintptr(p)&(uintptr(elem.Align_)-1) != 0 { throw("checkptr: misaligned pointer conversion") } // Check that (*[n]elem)(p) doesn't straddle multiple heap objects.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 00:18:55 UTC 2024 - 3.6K bytes - Viewed (0) -
src/go/internal/gccgoimporter/testdata/v1reflect.gox
func Append (s <type 1 "Value" <type 2 struct { .reflect.typ <type 3 *<type 4 ".reflect.commonType" <type 5 struct { .reflect.kind <type -5>; .reflect.align <type -1>; .reflect.fieldAlign <type -5>; .reflect._ <type -5>; .reflect.size <type -13>; .reflect.hash <type -7>; .reflect.hashfn <type 6 (? <type 7 "unsafe.Pointer" <type 8 *any>>, ? <type -13>)>; .reflect.equalfn <type 9 (? <type 7>, ? <type 7>, ? <type -13>)>; .reflect.string...
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 30 21:33:51 UTC 2021 - 10.3K bytes - Viewed (0) -
src/reflect/badlinkname.go
func badlinkname_rtype_Elem(*rtype) Type //go:linkname badlinkname_rtype_Field reflect.(*rtype).Field func badlinkname_rtype_Field(*rtype, int) StructField //go:linkname badlinkname_rtype_FieldAlign reflect.(*rtype).FieldAlign func badlinkname_rtype_FieldAlign(*rtype) int //go:linkname badlinkname_rtype_FieldByIndex reflect.(*rtype).FieldByIndex func badlinkname_rtype_FieldByIndex(*rtype, []int) StructField
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 4.5K bytes - Viewed (0) -
src/go/internal/gccgoimporter/importer_test.go
{pkgpath: "v1reflect", name: "Type", want: "type Type interface{Align() int; AssignableTo(u Type) bool; Bits() int; ChanDir() ChanDir; Elem() Type; Field(i int) StructField; FieldAlign() int; FieldByIndex(index []int) StructField; FieldByName(name string) (StructField, bool); FieldByNameFunc(match func(string) bool) (StructField, bool); Implements(u Type) bool; In(i int) Type; IsVariadic() bool; Key() Type; Kind() Kind; Len()...
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 15 20:17:57 UTC 2022 - 7.2K bytes - Viewed (0) -
src/go/printer/testdata/declarations.input
} Slice struct { Array, Len, Cap int } Eface struct { Typ, Ptr int } UncommonType struct { Name, PkgPath int } CommonType struct { Size, Hash, Alg, Align, FieldAlign, String, UncommonType int } Type struct { Typ, Ptr int } StructField struct { Name, PkgPath, Typ, Tag, Offset int } StructType struct { Fields int } PtrType struct {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 13 22:24:31 UTC 2021 - 16.5K bytes - Viewed (0) -
src/unsafe/unsafe.go
// within that struct, then Alignof(s.f) will return the required alignment // of a field of that type within a struct. This case is the same as the // value returned by [reflect.TypeOf](s.f).FieldAlign(). // The return value of Alignof is a Go constant if the type of the argument // does not have variable size. // (See the description of [Sizeof] for a definition of variable sized types.)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 21 19:45:20 UTC 2024 - 12.1K bytes - Viewed (0) -
src/go/printer/testdata/declarations.golden
} Slice struct { Array, Len, Cap int } Eface struct { Typ, Ptr int } UncommonType struct { Name, PkgPath int } CommonType struct { Size, Hash, Alg, Align, FieldAlign, String, UncommonType int } Type struct { Typ, Ptr int } StructField struct { Name, PkgPath, Typ, Tag, Offset int } StructType struct { Fields int } PtrType struct {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 13 22:24:31 UTC 2021 - 16.2K bytes - Viewed (0) -
src/internal/abi/type.go
func (t *Type) Size() uintptr { return t.Size_ } // Align returns the alignment of data with type t. func (t *Type) Align() int { return int(t.Align_) } func (t *Type) FieldAlign() int { return int(t.FieldAlign_) } type InterfaceType struct { Type PkgPath Name // import path Methods []Imethod // sorted by hash } func (t *Type) ExportedMethods() []Method { ut := t.Uncommon()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 17 21:09:59 UTC 2024 - 21.8K bytes - Viewed (0) -
src/reflect/type.go
// Methods applicable to all types. // Align returns the alignment in bytes of a value of // this type when allocated in memory. Align() int // FieldAlign returns the alignment in bytes of a value of // this type when used as a field in a struct. FieldAlign() int // Method returns the i'th method in the type's method set. // It panics if i is not in the range [0, NumMethod()). //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 85.5K bytes - Viewed (0)