- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 115 for BigEndian (0.11 sec)
-
src/internal/abi/abi.go
func (r *RegArgs) IntRegArgAddr(reg int, argSize uintptr) unsafe.Pointer { if argSize > goarch.PtrSize || argSize == 0 || argSize&(argSize-1) != 0 { panic("invalid argSize") } offset := uintptr(0) if goarch.BigEndian { offset = goarch.PtrSize - argSize } return unsafe.Pointer(uintptr(unsafe.Pointer(&r.Ints[reg])) + offset) } // IntArgRegBitmap is a bitmap large enough to hold one bit per // integer argument/return register.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 23 15:51:32 UTC 2023 - 3.1K bytes - Viewed (0) -
src/hash/fnv/fnv_test.go
} switch h.Size() { case 4: sum32 := h.(hash.Hash32).Sum32() if sum32 != binary.BigEndian.Uint32(sum) { t.Fatalf("Sum()=0x%x, but Sum32()=0x%x", sum, sum32) } case 8: sum64 := h.(hash.Hash64).Sum64() if sum64 != binary.BigEndian.Uint64(sum) { t.Fatalf("Sum()=0x%x, but Sum64()=0x%x", sum, sum64) } case 16:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 01 21:04:12 UTC 2017 - 7.3K bytes - Viewed (0) -
src/vendor/golang.org/x/net/route/binary.go
// // This package is supposed to be used by the net package of standard // library. Therefore the package set used in the package must be the // same as net package. var ( littleEndian binaryLittleEndian bigEndian binaryBigEndian ) type binaryByteOrder interface { Uint16([]byte) uint16 Uint32([]byte) uint32 PutUint16([]byte, uint16) PutUint32([]byte, uint32) Uint64([]byte) uint64 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 2.7K bytes - Viewed (0) -
src/os/dir_unix.go
// readInt returns the size-bytes unsigned integer in native byte order at offset off. func readInt(b []byte, off, size uintptr) (u uint64, ok bool) { if len(b) < int(off+size) { return 0, false } if goarch.BigEndian { return readIntBE(b[off:], size), true } return readIntLE(b[off:], size), true } func readIntBE(b []byte, size uintptr) uint64 { switch size { case 1: return uint64(b[0]) case 2:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 20:11:45 UTC 2024 - 4.8K bytes - Viewed (0) -
src/cmd/internal/objfile/disasm.go
"386": binary.LittleEndian, "amd64": binary.LittleEndian, "arm": binary.LittleEndian, "arm64": binary.LittleEndian, "ppc64": binary.BigEndian, "ppc64le": binary.LittleEndian, "s390x": binary.BigEndian, } type Liner interface { // Given a pc, returns the corresponding file, line, and function data. // If unknown, returns "",0,nil.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 20 02:13:02 UTC 2022 - 10.5K bytes - Viewed (0) -
src/debug/macho/file.go
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:]) switch Magic32 &^ 1 { case be &^ 1: f.ByteOrder = binary.BigEndian f.Magic = be case le &^ 1: f.ByteOrder = binary.LittleEndian f.Magic = le default:
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/debug/dwarf/buf.go
a := b.bytes(2) if a == nil { return 0 } return b.order.Uint16(a) } func (b *buf) uint24() uint32 { a := b.bytes(3) if a == nil { return 0 } if b.dwarf.bigEndian { return uint32(a[2]) | uint32(a[1])<<8 | uint32(a[0])<<16 } else { return uint32(a[0]) | uint32(a[1])<<8 | uint32(a[2])<<16 } } func (b *buf) uint32() uint32 { a := b.bytes(4) if a == nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 21 17:14:08 UTC 2022 - 3.7K bytes - Viewed (0) -
src/cmd/link/internal/ld/target.go
if t.HeadType == objabi.Hunknown { panic("HeadType is not set") } } // // MISC // func (t *Target) IsBigEndian() bool { return t.Arch.ByteOrder == binary.BigEndian } func (t *Target) UsesLibc() bool { t.mustSetHeadType() switch t.HeadType { case objabi.Haix, objabi.Hdarwin, objabi.Hopenbsd, objabi.Hsolaris, objabi.Hwindows:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 13 21:14:48 UTC 2022 - 3.9K bytes - Viewed (0) -
src/cmd/doc/doc_test.go
t.Errorf("error %q should contain math/rand", errStr) } } } } // Test the code to look up packages when given two args. First test case is // // go doc binary BigEndian // // This needs to find encoding/binary.BigEndian, which means // finding the package encoding/binary given only "binary". // Second case is // // go doc rand Float64 //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 07 19:16:55 UTC 2023 - 31.2K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/mod/sumdb/note/note.go
func keyHash(name string, key []byte) uint32 { h := sha256.New() h.Write([]byte(name)) h.Write([]byte("\n")) h.Write(key) sum := h.Sum(nil) return binary.BigEndian.Uint32(sum) } var ( errVerifierID = errors.New("malformed verifier id") errVerifierAlg = errors.New("unknown verifier algorithm") errVerifierHash = errors.New("invalid verifier hash") )
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jul 12 20:38:21 UTC 2023 - 20.1K bytes - Viewed (0)