- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for isPaddedField (0.12 sec)
-
src/cmd/compile/internal/types/alg.go
for _, f := range t.Fields() { if !IsComparable(f.Type) { return f } } return nil } // IsPaddedField reports whether the i'th field of struct type t is followed // by padding. func IsPaddedField(t *Type, i int) bool { if !t.IsStruct() { base.Fatalf("IsPaddedField called non-struct %v", t) } end := t.width if i+1 < t.NumFields() { end = t.Field(i + 1).Offset }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 18 15:30:00 UTC 2024 - 2.4K bytes - Viewed (0) -
src/cmd/compile/internal/types/size.go
} else { for i, f := range fields { a := f.Type.alg switch a { case ANOEQ, ANOALG: case AMEM: // Blank fields and padded fields need a special compare. if f.Sym.IsBlank() || IsPaddedField(t, i) { a = ASPECIAL } default: // Fields with non-memory equality need a special compare. a = ASPECIAL } t.setAlg(a) } } // Compute ptrBytes.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 15K bytes - Viewed (0) -
src/reflect/type.go
field := t.Field(i) if field.Name == "_" || !isRegularMemory(field.Type) || isPaddedField(t, i) { return false } } return true } } return false } // isPaddedField reports whether the i'th field of struct type t is followed // by padding. func isPaddedField(t Type, i int) bool { field := t.Field(i) if i+1 < t.NumField() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 85.5K bytes - Viewed (0)