- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 266 for umagic (0.51 sec)
-
test/fixedbugs/issue4370.dir/p1.go
// Copyright 2012 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 p1 type Magic int type T struct { x interface{} } func (t *T) M() bool { _, ok := t.x.(Magic) return ok } func F(t *T) { println(t)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 310 bytes - Viewed (0) -
src/crypto/md5/md5.go
return b, nil } func (d *digest) UnmarshalBinary(b []byte) error { if len(b) < len(magic) || string(b[:len(magic)]) != magic { return errors.New("crypto/md5: invalid hash state identifier") } if len(b) != marshaledSize { return errors.New("crypto/md5: invalid hash state size") } b = b[len(magic):] b, d.s[0] = consumeUint32(b) b, d.s[1] = consumeUint32(b) b, d.s[2] = consumeUint32(b)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 18:57:38 UTC 2024 - 4.3K bytes - Viewed (0) -
src/runtime/time_test.go
var frames []fakeTimeFrame for len(x) != 0 { if len(x) < 4+8+4 { return nil, errors.New("truncated header") } const magic = "\x00\x00PB" if string(x[:len(magic)]) != magic { return nil, errors.New("bad magic") } x = x[len(magic):] time := binary.BigEndian.Uint64(x) x = x[8:] dlen := binary.BigEndian.Uint32(x) x = x[4:] data := string(x[:dlen]) x = x[dlen:]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Mar 09 03:40:04 UTC 2024 - 3.1K bytes - Viewed (0) -
src/debug/plan9obj/plan9obj.go
// license that can be found in the LICENSE file. /* * Plan 9 a.out constants and data structures */ package plan9obj // Plan 9 Program header. type prog struct { Magic uint32 /* magic number */ Text uint32 /* size of text segment */ Data uint32 /* size of initialized data */ Bss uint32 /* size of uninitialized data */ Syms uint32 /* size of symbol table */ Entry uint32 /* entry point */
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 23:34:33 UTC 2016 - 863 bytes - Viewed (0) -
src/crypto/sha1/sha1.go
return b, nil } func (d *digest) UnmarshalBinary(b []byte) error { if len(b) < len(magic) || string(b[:len(magic)]) != magic { return errors.New("crypto/sha1: invalid hash state identifier") } if len(b) != marshaledSize { return errors.New("crypto/sha1: invalid hash state size") } b = b[len(magic):] b, d.h[0] = consumeUint32(b) b, d.h[1] = consumeUint32(b) b, d.h[2] = consumeUint32(b)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 16:50:58 UTC 2024 - 5.7K bytes - Viewed (0) -
src/hash/crc64/crc64.go
func (d *digest) BlockSize() int { return 1 } func (d *digest) Reset() { d.crc = 0 } const ( magic = "crc\x02" marshaledSize = len(magic) + 8 + 8 ) func (d *digest) MarshalBinary() ([]byte, error) { b := make([]byte, 0, marshaledSize) b = append(b, magic...) b = byteorder.BeAppendUint64(b, tableSum(d.tab)) b = byteorder.BeAppendUint64(b, d.crc) return b, nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat May 18 22:36:41 UTC 2024 - 5.2K bytes - Viewed (0) -
src/hash/crc32/crc32.go
func (d *digest) BlockSize() int { return 1 } func (d *digest) Reset() { d.crc = 0 } const ( magic = "crc\x01" marshaledSize = len(magic) + 4 + 4 ) func (d *digest) MarshalBinary() ([]byte, error) { b := make([]byte, 0, marshaledSize) b = append(b, magic...) b = byteorder.BeAppendUint32(b, tableSum(d.tab)) b = byteorder.BeAppendUint32(b, d.crc) return b, nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun May 12 05:36:29 UTC 2024 - 7.5K bytes - Viewed (0) -
test/fixedbugs/issue11771.go
//go:build !nacl && !js && !wasip1 && gc // Copyright 2015 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. // Issue 11771: Magic comments should ignore carriage returns. package main import ( "bytes" "fmt" "io/ioutil" "log" "os" "os/exec" "path/filepath" "runtime" ) func main() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:25 UTC 2023 - 1.3K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/test/integration/ratcheting_test_cases/invalid/httproute/invalid-header-name.yaml
apiVersion: gateway.networking.k8s.io/v1beta1 kind: HTTPRoute metadata: name: invalid-header-name spec: rules: - matches: - headers: - type: Exact name: magic/
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Oct 27 17:15:18 UTC 2023 - 203 bytes - Viewed (0) -
pilot/pkg/config/monitor/monitor_test.go
"istio.io/istio/pkg/config/schema/collections" "istio.io/istio/pkg/config/schema/gvk" "istio.io/istio/pkg/test/util/retry" ) var createConfigSet = []*config.Config{ { Meta: config.Meta{ Name: "magic", GroupVersionKind: gvk.Gateway, }, Spec: &networking.Gateway{ Servers: []*networking.Server{ { Port: &networking.Port{ Number: 80, Protocol: "HTTP", Name: "http",
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 31 14:48:28 UTC 2023 - 4.8K bytes - Viewed (0)