Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for BigEndian (0.2 sec)

  1. 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)
  2. 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)
  3. internal/grid/connection.go

    	case f.Header.Length <= len7:
    		bts[1] = byte(f.Header.Length)
    		n = 2
    
    	case f.Header.Length <= len16:
    		bts[1] = 126
    		binary.BigEndian.PutUint16(bts[2:4], uint16(f.Header.Length))
    		n = 4
    
    	case f.Header.Length <= len64:
    		bts[1] = 127
    		binary.BigEndian.PutUint64(bts[2:10], uint64(f.Header.Length))
    		n = 10
    
    	default:
    		return ws.ErrHeaderLengthUnexpected
    	}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 44.8K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/func.go

    func (f *Func) SplitInt64(name *LocalSlot) (*LocalSlot, *LocalSlot) {
    	var t *types.Type
    	if name.Type.IsSigned() {
    		t = types.Types[types.TINT32]
    	} else {
    		t = types.Types[types.TUINT32]
    	}
    	if f.Config.BigEndian {
    		return f.SplitSlot(name, ".hi", 0, t), f.SplitSlot(name, ".lo", t.Size(), types.Types[types.TUINT32])
    	}
    	return f.SplitSlot(name, ".hi", t.Size(), t), f.SplitSlot(name, ".lo", 0, types.Types[types.TUINT32])
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  5. src/cmd/link/internal/ld/data.go

    	data := make([]byte, 32)
    	copy(data, prefix)
    	data[len(prefix)] = byte(ctxt.Arch.PtrSize)
    	data[len(prefix)+1] = 0
    	if ctxt.Arch.ByteOrder == binary.BigEndian {
    		data[len(prefix)+1] = 1
    	}
    	data[len(prefix)+1] |= 2 // signals new pointer-free format
    	data = appendString(data, strdata["runtime.buildVersion"])
    	data = appendString(data, strdata["runtime.modinfo"])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 12 15:10:50 UTC 2024
    - 100.5K bytes
    - Viewed (0)
  6. src/net/http/transport_test.go

    			return
    		}
    		if _, err := io.ReadFull(s, buf[4:ipLen+6]); err != nil {
    			t.Errorf("socks5 proxy address read: %v", err)
    			return
    		}
    		ip := net.IP(buf[4 : ipLen+4])
    		port := binary.BigEndian.Uint16(buf[ipLen+4 : ipLen+6])
    		copy(buf[:3], []byte{5, 0, 0})
    		if _, err := s.Write(buf[:ipLen+6]); err != nil {
    			t.Errorf("socks5 proxy connect write: %v", err)
    			return
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 192.6K bytes
    - Viewed (0)
Back to top