Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 34 for BigEndian (0.19 sec)

  1. 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)
  2. 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)
  3. src/image/png/reader.go

    	}
    	if d.tmp[12] != itNone && d.tmp[12] != itAdam7 {
    		return FormatError("invalid interlace method")
    	}
    	d.interlace = int(d.tmp[12])
    
    	w := int32(binary.BigEndian.Uint32(d.tmp[0:4]))
    	h := int32(binary.BigEndian.Uint32(d.tmp[4:8]))
    	if w <= 0 || h <= 0 {
    		return FormatError("non-positive dimension")
    	}
    	nPixels64 := int64(w) * int64(h)
    	nPixels := int(nPixels64)
    	if nPixels64 != int64(nPixels) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:45 UTC 2023
    - 26K bytes
    - Viewed (0)
  4. cmd/erasure-metadata-utils.go

    		if len(versions) > 0 {
    			diskVersionsCount[binary.BigEndian.Uint64(versions)]++
    		}
    	}
    
    	var commonVersions uint64
    	max := 0
    	for versions, count := range diskVersionsCount {
    		if max < count {
    			max = count
    			commonVersions = versions
    		}
    	}
    
    	if max >= writeQuorum {
    		for _, versions := range diskVersions {
    			if binary.BigEndian.Uint64(versions) == commonVersions {
    				return versions
    			}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  5. src/runtime/alg.go

    func readUnaligned32(p unsafe.Pointer) uint32 {
    	q := (*[4]byte)(p)
    	if goarch.BigEndian {
    		return uint32(q[3]) | uint32(q[2])<<8 | uint32(q[1])<<16 | uint32(q[0])<<24
    	}
    	return uint32(q[0]) | uint32(q[1])<<8 | uint32(q[2])<<16 | uint32(q[3])<<24
    }
    
    func readUnaligned64(p unsafe.Pointer) uint64 {
    	q := (*[8]byte)(p)
    	if goarch.BigEndian {
    		return uint64(q[7]) | uint64(q[6])<<8 | uint64(q[5])<<16 | uint64(q[4])<<24 |
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/_gen/MIPS64.rules

    (AtomicOr8 ptr val mem) && !config.BigEndian =>
    	(LoweredAtomicOr32 (AND <typ.UInt32Ptr> (MOVVconst [^3]) ptr)
    		(SLLV <typ.UInt32> (ZeroExt8to32 val)
    			(SLLVconst <typ.UInt64> [3]
    				(ANDconst <typ.UInt64> [3] ptr))) mem)
    
    // AtomicAnd8(ptr,val)  =>  LoweredAtomicAnd32(ptr&^3,(uint32(val) << ((ptr & 3) * 8)) | ^(uint32(0xFF) << ((ptr & 3) * 8))))
    (AtomicAnd8  ptr val mem) && !config.BigEndian =>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jul 31 03:59:48 UTC 2023
    - 41.9K bytes
    - Viewed (0)
  7. src/debug/gosym/symtab.go

    )
    
    func walksymtab(data []byte, fn func(sym) error) error {
    	if len(data) == 0 { // missing symtab is okay
    		return nil
    	}
    	var order binary.ByteOrder = binary.BigEndian
    	newTable := false
    	switch {
    	case bytes.HasPrefix(data, oldLittleEndianSymtab):
    		// Same as Go 1.0, but little endian.
    		// Format was used during interim development between Go 1.0 and Go 1.1.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:33:30 UTC 2023
    - 17.9K bytes
    - Viewed (0)
  8. src/encoding/base64/base64.go

    			enc.decodeMap[src2[2]],
    			enc.decodeMap[src2[3]],
    			enc.decodeMap[src2[4]],
    			enc.decodeMap[src2[5]],
    			enc.decodeMap[src2[6]],
    			enc.decodeMap[src2[7]],
    		); ok {
    			binary.BigEndian.PutUint64(dst[n:], dn)
    			n += 6
    			si += 8
    		} else {
    			var ninc int
    			si, ninc, err = enc.decodeQuantum(dst[n:], src, si)
    			n += ninc
    			if err != nil {
    				return n, err
    			}
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:04:28 UTC 2023
    - 17.6K bytes
    - Viewed (0)
  9. src/internal/coverage/defs.go

    // CounterFileHeader stores files header information for a counter-data file.
    type CounterFileHeader struct {
    	Magic     [4]byte
    	Version   uint32
    	MetaHash  [16]byte
    	CFlavor   CounterFlavor
    	BigEndian bool
    	_         [6]byte // padding
    }
    
    // CounterSegmentHeader encapsulates information about a specific
    // segment in a counter data file, which at the moment contains
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 14 12:51:16 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  10. src/runtime/iface.go

    		x = unsafe.Pointer(&staticuint64s[val])
    		if goarch.BigEndian {
    			x = add(x, 6)
    		}
    	} else {
    		x = mallocgc(2, uint16Type, false)
    		*(*uint16)(x) = val
    	}
    	return
    }
    
    func convT32(val uint32) (x unsafe.Pointer) {
    	if val < uint32(len(staticuint64s)) {
    		x = unsafe.Pointer(&staticuint64s[val])
    		if goarch.BigEndian {
    			x = add(x, 4)
    		}
    	} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 22.5K bytes
    - Viewed (0)
Back to top