- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 26 for BigEndian (0.25 sec)
-
src/vendor/golang.org/x/net/lif/sys.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 399 bytes - Viewed (0) -
src/runtime/time_test.go
} 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:] frames = append(frames, fakeTimeFrame{time, data}) } return frames, nil }
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/syscall/dirent.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:13:24 UTC 2024 - 2.4K bytes - Viewed (0) -
src/cmd/compile/internal/test/memcombine_test.go
return y } func readUint16be(b []byte) uint64 { y := uint64(binary.BigEndian.Uint16(b)) nop() // force spill return y } func readUint32le(b []byte) uint64 { y := uint64(binary.LittleEndian.Uint32(b)) nop() // force spill return y } func readUint32be(b []byte) uint64 { y := uint64(binary.BigEndian.Uint32(b)) nop() // force spill return y } //go:noinline func nop() { }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 30 18:35:50 UTC 2023 - 4.5K bytes - Viewed (0) -
guava/src/com/google/common/hash/LittleEndianByteArray.java
UNSAFE_BIG_ENDIAN { @Override public long getLongLittleEndian(byte[] array, int offset) { long bigEndian = theUnsafe.getLong(array, (long) offset + BYTE_ARRAY_BASE_OFFSET); // The hardware is big-endian, so we need to reverse the order of the bytes. return Long.reverseBytes(bigEndian); } @Override public void putLongLittleEndian(byte[] array, int offset, long value) {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri Jun 07 22:25:23 UTC 2024 - 9.8K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/text/unicode/norm/forminfo.go
recompMap = make(map[uint32]rune, len(recompMapPacked)/8) var buf [8]byte for i := 0; i < len(recompMapPacked); i += 8 { copy(buf[:], recompMapPacked[i:i+8]) key := binary.BigEndian.Uint32(buf[:4]) val := binary.BigEndian.Uint32(buf[4:]) recompMap[key] = rune(val) } } // Recomposition // We use 32-bit keys instead of 64-bit for the two codepoint keys.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 24 13:01:26 UTC 2024 - 8.7K bytes - Viewed (0) -
src/internal/chacha8rand/chacha8_generic.go
x64 = uint64(x)<<32 | uint64(x) b[10][0] = x64 b[10][1] = x64 x = uint32(seed[3] >> 32) x64 = uint64(x)<<32 | uint64(x) b[11][0] = x64 b[11][1] = x64 // Counters. if goarch.BigEndian { b[12][0] = uint64(counter+0)<<32 | uint64(counter+1) b[12][1] = uint64(counter+2)<<32 | uint64(counter+3) } else { b[12][0] = uint64(counter+0) | uint64(counter+1)<<32
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 05 20:32:54 UTC 2023 - 6.3K bytes - Viewed (0) -
pkg/proxy/util/nfacct/nfacct_linux.go
// unsigned integer (counter.Packets). if err := binary.Read(reader, binary.BigEndian, &counter.Packets); err != nil { return nil, err } attrsProcessed++ case attrBytes: // NFACCT_BYTES holds 8 bytes of data, so we directly read the next 8 bytes into a 64-bit // unsigned integer (counter.Bytes). if err := binary.Read(reader, binary.BigEndian, &counter.Bytes); err != nil { return nil, err }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Apr 27 06:47:50 UTC 2024 - 9.2K bytes - Viewed (0) -
android/guava/src/com/google/common/hash/LittleEndianByteArray.java
UNSAFE_BIG_ENDIAN { @Override public long getLongLittleEndian(byte[] array, int offset) { long bigEndian = theUnsafe.getLong(array, (long) offset + BYTE_ARRAY_BASE_OFFSET); // The hardware is big-endian, so we need to reverse the order of the bytes. return Long.reverseBytes(bigEndian); } @Override public void putLongLittleEndian(byte[] array, int offset, long value) {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri Jun 07 22:25:23 UTC 2024 - 9.7K 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)