Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 48 for BigEndian (0.51 sec)

  1. src/debug/elf/file.go

    		n, _ := s.sr.ReadAt(b, 0)
    		if n != 12 || string(b[:4]) != "ZLIB" {
    			return io.NewSectionReader(s.sr, 0, 1<<63-1)
    		}
    
    		s.compressionOffset = 12
    		s.compressionType = COMPRESS_ZLIB
    		s.Size = binary.BigEndian.Uint64(b[4:12])
    		zrd = zlib.NewReader
    
    	} else if s.Flags&SHF_ALLOC != 0 {
    		return errorReader{&FormatError{int64(s.Offset),
    			"SHF_COMPRESSED applies only to non-allocable sections", s.compressionType}}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 23 16:49:58 UTC 2024
    - 43.1K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/sys/unix/syscall_linux.go

    	// encoding/binary helpers to write the bytes without worrying
    	// about the ordering.
    	binary.BigEndian.PutUint32(sa.raw[2:6], px_proto_oe)
    	// This field is deliberately big-endian, unlike the previous
    	// one. The kernel expects SID to be in network byte order.
    	binary.BigEndian.PutUint16(sa.raw[6:8], sa.SID)
    	copy(sa.raw[8:14], sa.Remote)
    	for i := 14; i < 14+IFNAMSIZ; i++ {
    		sa.raw[i] = 0
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 05:26:45 UTC 2024
    - 77.5K bytes
    - Viewed (0)
  3. src/runtime/arena.go

    			zeros -= ptrBits
    		}
    		h.offset += ptrBits * goarch.PtrSize
    	}
    }
    
    // bswapIfBigEndian swaps the byte order of the uintptr on goarch.BigEndian platforms,
    // and leaves it alone elsewhere.
    func bswapIfBigEndian(x uintptr) uintptr {
    	if goarch.BigEndian {
    		if goarch.PtrSize == 8 {
    			return uintptr(sys.Bswap64(uint64(x)))
    		}
    		return uintptr(sys.Bswap32(uint32(x)))
    	}
    	return x
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:44:56 UTC 2024
    - 37.9K bytes
    - Viewed (0)
  4. src/cmd/vendor/github.com/google/pprof/internal/binutils/binutils.go

    		}
    		return f, nil
    	}
    
    	// Mach-O magic numbers can be big or little endian.
    	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)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  5. src/encoding/gob/encode.go

    // encodeUint writes an encoded unsigned integer to state.b.
    func (state *encoderState) encodeUint(x uint64) {
    	if x <= 0x7F {
    		state.b.writeByte(uint8(x))
    		return
    	}
    
    	binary.BigEndian.PutUint64(state.buf[1:], x)
    	bc := bits.LeadingZeros64(x) >> 3      // 8 - bytelen(x)
    	state.buf[bc] = uint8(bc - uint64Size) // and then we subtract 8 to get -bytelen(x)
    
    	state.b.Write(state.buf[bc : uint64Size+1])
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 02:00:26 UTC 2024
    - 19K bytes
    - Viewed (0)
  6. 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)
  7. cmd/xl-storage-format-v2.go

    		dst = msgp.AppendBytes(dst, ver.meta)
    	}
    
    	// Update size...
    	binary.BigEndian.PutUint32(dst[dataOffset-4:dataOffset], uint32(len(dst)-dataOffset))
    
    	// Add CRC of metadata as fixed size (5 bytes)
    	// Prior to v1.3 this was variable sized.
    	tmp = tmp[:5]
    	tmp[0] = 0xce // muint32
    	binary.BigEndian.PutUint32(tmp[1:], uint32(xxhash.Sum64(dst[dataOffset:])))
    	dst = append(dst, tmp[:5]...)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 29 19:14:09 UTC 2024
    - 63.6K bytes
    - Viewed (0)
  8. src/cmd/link/internal/ld/elf.go

    		elfRelType = ".rela"
    	} else {
    		elfRelType = ".rel"
    	}
    
    	switch ctxt.Arch.Family {
    	// 64-bit architectures
    	case sys.PPC64, sys.S390X:
    		if ctxt.Arch.ByteOrder == binary.BigEndian && ctxt.HeadType != objabi.Hopenbsd {
    			ehdr.Flags = 1 /* Version 1 ABI */
    		} else {
    			ehdr.Flags = 2 /* Version 2 ABI */
    		}
    		fallthrough
    	case sys.AMD64, sys.ARM64, sys.Loong64, sys.MIPS64, sys.RISCV64:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 13:29:54 UTC 2024
    - 63.6K bytes
    - Viewed (0)
  9. src/net/http/h2_bundle.go

    // The index must be >= 0 and less than f.NumSettings().
    func (f *http2SettingsFrame) Setting(i int) http2Setting {
    	buf := f.p
    	return http2Setting{
    		ID:  http2SettingID(binary.BigEndian.Uint16(buf[i*6 : i*6+2])),
    		Val: binary.BigEndian.Uint32(buf[i*6+2 : i*6+6]),
    	}
    }
    
    func (f *http2SettingsFrame) NumSettings() int { return len(f.p) / 6 }
    
    // HasDuplicates reports whether f contains any duplicate setting IDs.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 364.1K bytes
    - Viewed (0)
  10. src/cmd/link/internal/loadelf/ldelf.go

    	}
    
    	var e binary.ByteOrder
    	switch elf.Data(hdrbuf[elf.EI_DATA]) {
    	case elf.ELFDATA2LSB:
    		e = binary.LittleEndian
    
    	case elf.ELFDATA2MSB:
    		e = binary.BigEndian
    
    	default:
    		return errorf("malformed elf file, unknown header")
    	}
    
    	hdr := new(elf.Header32)
    	binary.Read(bytes.NewReader(hdrbuf[:]), e, hdr)
    
    	if string(hdr.Ident[:elf.EI_CLASS]) != elf.ELFMAG {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 15:12:12 UTC 2024
    - 33.9K bytes
    - Viewed (0)
Back to top