- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 18 for Magic64 (0.12 sec)
-
src/sync/atomic/atomic_test.go
j = delta } if x.before != magic64 || x.after != magic64 { t.Fatalf("wrong magic: %#x _ %#x != %#x _ %#x", x.before, x.after, magic64, magic64) } } func TestSwapUint64(t *testing.T) { var x struct { before uint64 i uint64 after uint64 } magic64 := uint64(magic64) x.before = magic64 x.after = magic64 var j uint64 for delta := uint64(1); delta+delta > delta; delta += delta {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:37:29 UTC 2024 - 71.4K bytes - Viewed (0) -
src/debug/plan9obj/plan9obj.go
} // Plan 9 symbol table entries. type sym struct { value uint64 typ byte name []byte } const ( Magic64 = 0x8000 // 64-bit expanded header Magic386 = (4*11+0)*11 + 7 MagicAMD64 = (4*26+0)*26 + 7 + Magic64 MagicARM = (4*20+0)*20 + 7
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 23:34:33 UTC 2016 - 863 bytes - Viewed (0) -
src/hash/fnv/fnv.go
if len(b) < len(magic64) || string(b[:len(magic64)]) != magic64 { return errors.New("hash/fnv: invalid hash state identifier") } if len(b) != marshaledSize64 { return errors.New("hash/fnv: invalid hash state size") } *s = sum64(byteorder.BeUint64(b[4:])) return nil } func (s *sum64a) UnmarshalBinary(b []byte) error { if len(b) < len(magic64a) || string(b[:len(magic64a)]) != magic64a {
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/file.go
func NewFile(r io.ReaderAt) (*File, error) { f := new(File) sr := io.NewSectionReader(r, 0, 1<<63-1) // Read and decode Mach magic to determine byte order, size. // Magic32 and Magic64 differ only in the bottom bit. var ident [4]byte if _, err := r.ReadAt(ident[0:], 0); err != nil { return nil, err } be := binary.BigEndian.Uint32(ident[0:]) le := binary.LittleEndian.Uint32(ident[0:])
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 18 19:33:30 UTC 2023 - 17.9K bytes - Viewed (0) -
src/cmd/link/internal/ld/macho_update_uuid.go
if _, err := io.Copy(outf, exef); err != nil { return err } // Locate the portion of the binary containing the load commands. cmdOffset := unsafe.Sizeof(exem.FileHeader) if is64bit := exem.Magic == macho.Magic64; is64bit { // mach_header_64 has one extra uint32. cmdOffset += unsafe.Sizeof(exem.Magic) } if _, err := outf.Seek(int64(cmdOffset), 0); err != nil { return err }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 21 18:45:27 UTC 2024 - 3.3K 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) // Read the number of FatArchHeaders that come after the fat_header.
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/debug/macho/macho.go
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 ( TypeObj Type = 1 TypeExec Type = 2
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 14 00:56:52 UTC 2021 - 7.6K bytes - Viewed (0) -
src/debug/plan9obj/file.go
f := &File{FileHeader: FileHeader{ Magic: ph.Magic, Bss: ph.Bss, Entry: uint64(ph.Entry), PtrSize: 4, LoadAddress: 0x1000, HdrSize: 4 * 8, }} if ph.Magic&Magic64 != 0 { if err := binary.Read(sr, binary.BigEndian, &f.Entry); err != nil { return nil, err } f.PtrSize = 8 f.LoadAddress = 0x200000 f.HdrSize += 8 } var sects = []struct {
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/cmd/vendor/github.com/google/pprof/internal/binutils/binutils.go
machoMagicLittle := binary.LittleEndian.Uint32(header[:]) machoMagicBig := binary.BigEndian.Uint32(header[:]) if machoMagicLittle == macho.Magic32 || machoMagicLittle == macho.Magic64 || machoMagicBig == macho.Magic32 || machoMagicBig == macho.Magic64 { f, err := b.openMachO(name, start, limit, offset) if err != nil { return nil, fmt.Errorf("error reading Mach-O file %s: %v", name, err) } return f, nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 31 19:48:28 UTC 2024 - 22.3K bytes - Viewed (0) -
src/cmd/link/internal/ld/macho_combine_dwarf.go
textsect := exem.Section("__text") if textsect == nil { return fmt.Errorf("missing __text section") } cmdOffset := unsafe.Sizeof(exem.FileHeader) if is64bit := exem.Magic == macho.Magic64; is64bit { // mach_header_64 has one extra uint32. cmdOffset += unsafe.Sizeof(exem.Magic) } dwarfCmdOffset := uint32(cmdOffset) + exem.FileHeader.Cmdsz availablePadding := textsect.Offset - dwarfCmdOffset
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 21 18:45:27 UTC 2024 - 13.3K bytes - Viewed (0)