- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for CalcSize (0.48 sec)
-
staging/src/k8s.io/apiserver/plugin/pkg/audit/truncate/truncate.go
var errors []error var impacted []*auditinternal.Event var batch []*auditinternal.Event var batchSize int64 success := true for _, event := range events { size, err := b.calcSize(event) // If event was correctly serialized, but the size is more than allowed // and it makes sense to do trimming, i.e. there's a request and/or // response present, try to strip away request and response.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 29 00:03:53 UTC 2022 - 4.7K bytes - Viewed (0) -
src/cmd/compile/internal/test/abiutilsaux_test.go
} return "" } func nrtest(t *testing.T, ft *types.Type, expected int) { types.CalcSize(ft) got := configAMD64.NumParamRegs(ft) if got != expected { t.Errorf("]\nexpected num regs = %d, got %d, type %v", expected, got, ft) } } func abitest(t *testing.T, ft *types.Type, exp expectedDump) { types.CalcSize(ft) // Analyze with full set of registers. regRes := configAMD64.ABIAnalyze(ft, false)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 13 18:34:00 UTC 2023 - 3.2K bytes - Viewed (0) -
src/cmd/compile/internal/pkginit/initAsanGlobals.go
nfield(nxp, fname("sourceLocation"), up), nfield(nxp, fname("odrIndicator"), up), }) types.CalcSize(asanGlobal) asanLocation := types.NewStruct([]*types.Field{ nfield(nxp, fname("filename"), up), nfield(nxp, fname("line"), i32), nfield(nxp, fname("column"), i32), }) types.CalcSize(asanLocation) defString := types.NewStruct([]*types.Field{ types.NewField(nxp, fname("data"), up),
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 17 19:36:24 UTC 2023 - 8.7K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/dcl.go
} if typ == nil { base.FatalfAt(pos, "TempAt called with nil type") } if typ.Kind() == types.TFUNC && typ.Recv() != nil { base.FatalfAt(pos, "misuse of method type: %v", typ) } types.CalcSize(typ) sym := &types.Sym{ Name: autotmpname(len(curfn.Dcl)), Pkg: types.LocalPkg, } name := curfn.NewLocal(pos, sym, typ) name.SetEsc(ir.EscNever) name.SetUsed(true) name.SetAutoTemp(true)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 14 13:15:50 UTC 2023 - 3.1K bytes - Viewed (0) -
src/runtime/internal/sys/nih.go
// Copyright 2014 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package sys // NOTE: keep in sync with cmd/compile/internal/types.CalcSize // to make the compiler recognize this as an intrinsic type. type nih struct{} // NotInHeap is a type must never be allocated from the GC'd heap or on the stack, // and is called not-in-heap. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 02 18:24:50 UTC 2022 - 1.7K bytes - Viewed (0) -
src/cmd/compile/internal/types/alg.go
base.Fatalf("ambiguous priority %s and %s", a, t.alg) } } // AlgType returns the AlgKind used for comparing and hashing Type t. func AlgType(t *Type) AlgKind { CalcSize(t) return t.alg } // TypeHasNoAlg reports whether t does not have any associated hash/eq // algorithms because t, or some component of t, is marked Noalg. func TypeHasNoAlg(t *Type) bool {
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/typecheck/syms.go
// successive occurrences of the "any" placeholder in the // type syntax expression n.Type. func substArgTypes(old *ir.Name, types_ ...*types.Type) *ir.Name { for _, t := range types_ { types.CalcSize(t) } n := ir.NewNameAt(old.Pos(), old.Sym(), types.SubstAny(old.Type(), &types_)) n.Class = old.Class n.Func = old.Func if len(types_) > 0 { base.Fatalf("SubstArgTypes: too many argument types") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 22 21:17:13 UTC 2023 - 3.7K bytes - Viewed (0)