- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 97 for umagic (0.28 sec)
-
src/cmd/go/testdata/script/goflags.txt
go env stdout GOFLAGS # Flags listed in GOFLAGS should be safe to duplicate on the command line. env GOFLAGS=-tags=magic go list -tags=magic go test -tags=magic -c -o $devnull go vet -tags=magic # GOFLAGS uses the same quoting rules (quoted.Split) as the rest of # the go command env variables env GOFLAGS='"-tags=magic wizardry"' go list -- foo_test.go --
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 25 16:47:27 UTC 2022 - 1.5K bytes - Viewed (0) -
src/hash/adler32/adler32.go
const ( magic = "adl\x01" marshaledSize = len(magic) + 4 ) func (d *digest) MarshalBinary() ([]byte, error) { b := make([]byte, 0, marshaledSize) b = append(b, magic...) b = byteorder.BeAppendUint32(b, uint32(*d)) return b, nil } func (d *digest) UnmarshalBinary(b []byte) error { if len(b) < len(magic) || string(b[:len(magic)]) != magic {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun May 12 05:36:29 UTC 2024 - 3K bytes - Viewed (0) -
src/debug/plan9obj/file.go
// Read and decode Plan 9 magic var magic [4]byte if _, err := r.ReadAt(magic[:], 0); err != nil { return nil, err } _, err := parseMagic(magic[:]) if err != nil { return nil, err } ph := new(prog) if err := binary.Read(sr, binary.BigEndian, ph); err != nil { return nil, err } f := &File{FileHeader: FileHeader{ Magic: ph.Magic, Bss: ph.Bss,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 18 19:33:30 UTC 2023 - 7.2K bytes - Viewed (0) -
src/runtime/sys_darwin_arm64.go
var k pthreadkey err := g0_pthread_key_create(&k, 0) if err != 0 { abort() } const magic = 0xc476c475c47957 err = g0_pthread_setspecific(k, magic) if err != 0 { abort() } for i, x := range tlsbase { if x == magic { *tlsg = uintptr(i * goarch.PtrSize) g0_pthread_setspecific(k, 0) return } } abort()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 30 03:11:18 UTC 2021 - 1.7K bytes - Viewed (0) -
src/cmd/internal/codesign/codesign.go
out = put32be(out, b.offset) return out } const blobSize = 2 * 4 type SuperBlob struct { magic uint32 // magic number length uint32 // total length of SuperBlob count uint32 // number of index entries following // blobs []Blob } func (s *SuperBlob) put(out []byte) []byte { out = put32be(out, s.magic) out = put32be(out, s.length) out = put32be(out, s.count) return out }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 29 14:23:19 UTC 2022 - 8.3K bytes - Viewed (0) -
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)