Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 109 for BigEndian (0.17 sec)

  1. src/image/png/writer.go

    		e.err = UnsupportedError(name + " chunk is too large: " + strconv.Itoa(len(b)))
    		return
    	}
    	binary.BigEndian.PutUint32(e.header[:4], n)
    	e.header[4] = name[0]
    	e.header[5] = name[1]
    	e.header[6] = name[2]
    	e.header[7] = name[3]
    	crc := crc32.NewIEEE()
    	crc.Write(e.header[4:8])
    	crc.Write(b)
    	binary.BigEndian.PutUint32(e.footer[:4], crc.Sum32())
    
    	_, e.err = e.w.Write(e.header[:8])
    	if e.err != nil {
    		return
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 11 17:08:05 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  2. src/cmd/internal/codesign/codesign.go

    				get32(data[8:]),
    				get32(data[12:]),
    			}, true
    		}
    	}
    	return CodeSigCmd{}, false
    }
    
    func put32be(b []byte, x uint32) []byte { binary.BigEndian.PutUint32(b, x); return b[4:] }
    func put64be(b []byte, x uint64) []byte { binary.BigEndian.PutUint64(b, x); return b[8:] }
    func put8(b []byte, x uint8) []byte     { b[0] = x; return b[1:] }
    func puts(b, s []byte) []byte           { n := copy(b, s); return b[n:] }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 29 14:23:19 UTC 2022
    - 8.3K bytes
    - Viewed (0)
  3. 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)
  4. src/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: Fri Feb 10 18:59:52 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  5. src/cmd/link/internal/ld/outbuf.go

    	out.Write(out.encbuf[:4])
    }
    
    func (out *OutBuf) Write32b(v uint32) {
    	binary.BigEndian.PutUint32(out.encbuf[:], v)
    	out.Write(out.encbuf[:4])
    }
    
    func (out *OutBuf) Write64(v uint64) {
    	out.arch.ByteOrder.PutUint64(out.encbuf[:], v)
    	out.Write(out.encbuf[:8])
    }
    
    func (out *OutBuf) Write64b(v uint64) {
    	binary.BigEndian.PutUint64(out.encbuf[:], v)
    	out.Write(out.encbuf[:8])
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 17 19:51:29 UTC 2022
    - 8.1K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top