- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for umagic32 (0.16 sec)
-
src/hash/fnv/fnv.go
if len(b) < len(magic32) || string(b[:len(magic32)]) != magic32 { return errors.New("hash/fnv: invalid hash state identifier") } if len(b) != marshaledSize32 { return errors.New("hash/fnv: invalid hash state size") } *s = sum32(byteorder.BeUint32(b[4:])) return nil } func (s *sum32a) UnmarshalBinary(b []byte) error { if len(b) < len(magic32a) || string(b[:len(magic32a)]) != magic32a {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat May 18 22:36:41 UTC 2024 - 8.5K bytes - Viewed (0) -
src/debug/macho/fat.go
// must be converted to little endian first though. var buf [4]byte binary.BigEndian.PutUint32(buf[:], ff.Magic) leMagic := binary.LittleEndian.Uint32(buf[:]) if leMagic == Magic32 || leMagic == Magic64 { return nil, ErrNotFat } else { return nil, &FormatError{0, "invalid magic number", nil} } } offset := int64(4)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 18 19:33:30 UTC 2023 - 4.1K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/magic_test.go
} } } } func testMagicExhaustiveU(t *testing.T, n uint) { max := uint64(1) << n for c := uint64(1); c < max; c++ { if !umagicOK(n, int64(c)) { continue } m := umagic(n, int64(c)).m s := umagic(n, int64(c)).s for i := uint64(0); i < max; i++ { want := i / c got := (i * (max + m)) >> (n + uint(s)) if want != got {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 30 22:02:07 UTC 2019 - 9.1K bytes - Viewed (0) -
src/debug/macho/macho.go
Magic uint32 Cpu Cpu SubCpu uint32 Type Type Ncmd uint32 Cmdsz uint32 Flags uint32 } const ( fileHeaderSize32 = 7 * 4 fileHeaderSize64 = 8 * 4 ) const ( Magic32 uint32 = 0xfeedface Magic64 uint32 = 0xfeedfacf MagicFat uint32 = 0xcafebabe ) // A Type is the Mach-O file type, e.g. an object file, executable, or dynamic library. type Type uint32 const (
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 14 00:56:52 UTC 2021 - 7.6K bytes - Viewed (0)