- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 98 for newBar (0.18 sec)
-
src/cmd/compile/internal/inline/inlheur/testdata/props/returns2.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 16 20:15:01 UTC 2023 - 5.7K bytes - Viewed (0) -
test/escape2.go
*xxx = &y } func foo19(y int) { **xxx = y } type Bar struct { i int ii *int } func NewBar() *Bar { return &Bar{42, nil} // ERROR "&Bar{...} escapes to heap$" } func NewBarp(x *int) *Bar { // ERROR "leaking param: x$" return &Bar{42, x} // ERROR "&Bar{...} escapes to heap$" } func NewBarp2(x *int) *Bar { // ERROR "x does not escape$"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Dec 14 17:22:18 UTC 2023 - 35.1K bytes - Viewed (0) -
test/escape2n.go
*xxx = &y } func foo19(y int) { **xxx = y } type Bar struct { i int ii *int } func NewBar() *Bar { return &Bar{42, nil} // ERROR "&Bar{...} escapes to heap$" } func NewBarp(x *int) *Bar { // ERROR "leaking param: x$" return &Bar{42, x} // ERROR "&Bar{...} escapes to heap$" } func NewBarp2(x *int) *Bar { // ERROR "x does not escape$"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Dec 14 17:22:18 UTC 2023 - 35.1K bytes - Viewed (0) -
src/runtime/slice.go
// gives a smooth-ish transition between the two. newcap += (newcap + 3*threshold) >> 2 // We need to check `newcap >= newLen` and whether `newcap` overflowed. // newLen is guaranteed to be larger than zero, hence // when newcap overflows then `uint(newcap) > uint(newLen)`. // This allows to check for both with the same comparison. if uint(newcap) >= uint(newLen) { break } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 16:25:21 UTC 2024 - 12.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/modify_io_nodes.cc
arg_type = quantize_output.getType(); new_arg = block.addArgument(arg_type, loc); quantize_output.replaceAllUsesWith(new_arg); } else if (input_type.isUnsignedInteger( current_type.getIntOrFloatBitWidth())) { // int8 != uint8 arg_type = quant::ConvertSignedQuantizedToUnsigned( quantize_output.getType(), loc); new_arg = block.addArgument(arg_type, loc);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/common/values.go
return types.NullValue } return types.NewErr("invalid data, got null for schema with nullable=false") } if schema.IsXIntOrString() { switch v := unstructured.(type) { case string: return types.String(v) case int: return types.Int(v) case int32: return types.Int(v) case int64: return types.Int(v) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 23 22:30:17 UTC 2023 - 20.5K bytes - Viewed (0) -
src/crypto/cipher/ctr.go
// implementation of CTR, like crypto/aes. NewCTR will check for this interface // and return the specific Stream if found. type ctrAble interface { NewCTR(iv []byte) Stream } // NewCTR returns a [Stream] which encrypts/decrypts using the given [Block] in // counter mode. The length of iv must be the same as the [Block]'s block size. func NewCTR(block Block, iv []byte) Stream { if ctr, ok := block.(ctrAble); ok {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 13 17:09:47 UTC 2023 - 2.2K bytes - Viewed (0) -
pkg/apis/certificates/validation/validation.go
} func ValidateCertificateSigningRequestUpdate(newCSR, oldCSR *certificates.CertificateSigningRequest) field.ErrorList { opts := getValidationOptions(newCSR, oldCSR) return validateCertificateSigningRequestUpdate(newCSR, oldCSR, opts) } func ValidateCertificateSigningRequestStatusUpdate(newCSR, oldCSR *certificates.CertificateSigningRequest) field.ErrorList { opts := getValidationOptions(newCSR, oldCSR) opts.allowSettingCertificate = true
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Nov 03 18:40:49 UTC 2023 - 20.1K bytes - Viewed (0) -
pilot/pkg/model/addressmap_test.go
) func TestAddressMapLen(t *testing.T) { cases := []struct { name string newMap func() *model.AddressMap expected int }{ { name: "nil addresses map", newMap: func() *model.AddressMap { return nil }, expected: 0, }, { name: "empty addresses map", newMap: func() *model.AddressMap { m := model.AddressMap{} m.AddAddressesFor(c1ID, make([]string, 0))
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 31 14:48:28 UTC 2023 - 2.9K bytes - Viewed (0) -
pkg/apis/certificates/validation/validation_test.go
Usages: validUsages, Request: newCSRPEM(t), SignerName: "example.com/something", } tests := []struct { name string newCSR *capi.CertificateSigningRequest oldCSR *capi.CertificateSigningRequest errs []string }{{ name: "no-op", newCSR: &capi.CertificateSigningRequest{ObjectMeta: validUpdateMeta, Spec: validSpec},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Nov 03 18:40:49 UTC 2023 - 61K bytes - Viewed (0)