Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for LeUint16 (0.12 sec)

  1. src/syscall/dirent.go

    	case 2:
    		return uint64(byteorder.BeUint16(b))
    	case 4:
    		return uint64(byteorder.BeUint32(b))
    	case 8:
    		return uint64(byteorder.BeUint64(b))
    	default:
    		panic("syscall: readInt with unsupported size")
    	}
    }
    
    func readIntLE(b []byte, size uintptr) uint64 {
    	switch size {
    	case 1:
    		return uint64(b[0])
    	case 2:
    		return uint64(byteorder.LeUint16(b))
    	case 4:
    		return uint64(byteorder.LeUint32(b))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 20:13:24 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  2. src/cmd/internal/test2json/testdata/framefuzz.test

        inlining_test.go:102: not in expected set, but also inlinable: "Addr.isZero"
        inlining_test.go:102: not in expected set, but also inlinable: "bePutUint32"
        inlining_test.go:102: not in expected set, but also inlinable: "leUint16"
        inlining_test.go:102: not in expected set, but also inlinable: "Addr.string6"
        inlining_test.go:102: not in expected set, but also inlinable: "beUint64"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 26 19:50:36 UTC 2022
    - 2.8K bytes
    - Viewed (0)
  3. src/internal/byteorder/byteorder.go

    // license that can be found in the LICENSE file.
    
    // Package byteorder provides functions for decoding and encoding
    // little and big endian integer types from/to byte slices.
    package byteorder
    
    func LeUint16(b []byte) uint16 {
    	_ = b[1] // bounds check hint to compiler; see golang.org/issue/14808
    	return uint16(b[0]) | uint16(b[1])<<8
    }
    
    func LePutUint16(b []byte, v uint16) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 20:31:29 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  4. src/os/dir_unix.go

    	case 2:
    		return uint64(byteorder.BeUint16(b))
    	case 4:
    		return uint64(byteorder.BeUint32(b))
    	case 8:
    		return uint64(byteorder.BeUint64(b))
    	default:
    		panic("syscall: readInt with unsupported size")
    	}
    }
    
    func readIntLE(b []byte, size uintptr) uint64 {
    	switch size {
    	case 1:
    		return uint64(b[0])
    	case 2:
    		return uint64(byteorder.LeUint16(b))
    	case 4:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 20:11:45 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  5. src/cmd/internal/test2json/testdata/framefuzz.json

    {"Action":"output","Test":"TestInlining","Output":"    inlining_test.go:102: not in expected set, but also inlinable: \"leUint16\"\n"}
    {"Action":"output","Test":"TestInlining","Output":"    inlining_test.go:102: not in expected set, but also inlinable: \"Addr.string6\"\n"}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 09 17:33:07 UTC 2022
    - 6.3K bytes
    - Viewed (0)
  6. src/syscall/dir_plan9.go

    }
    
    // gbit16 reads a 16-bit number in little-endian order from b and returns it with the remaining slice of b.
    //
    //go:nosplit
    func gbit16(b []byte) (uint16, []byte) {
    	return byteorder.LeUint16(b), b[2:]
    }
    
    // gbit32 reads a 32-bit number in little-endian order from b and returns it with the remaining slice of b.
    func gbit32(b []byte) (uint32, []byte) {
    	return byteorder.LeUint32(b), b[4:]
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 19:32:38 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  7. src/internal/poll/fd_wasip1.go

    		return 0, false
    	}
    	return readIntLE(b[off:], size), true
    }
    
    func readIntLE(b []byte, size uintptr) uint64 {
    	switch size {
    	case 1:
    		return uint64(b[0])
    	case 2:
    		return uint64(byteorder.LeUint16(b))
    	case 4:
    		return uint64(byteorder.LeUint32(b))
    	case 8:
    		return uint64(byteorder.LeUint64(b))
    	default:
    		panic("internal/poll: readInt with unsupported size")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 20:14:02 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  8. src/crypto/internal/mlkem768/mlkem768.go

    	off := len(buf)  // index into buf, starts in a "buffer fully consumed" state
    	for {
    		if off >= len(buf) {
    			B.Read(buf[:])
    			off = 0
    		}
    		d1 := byteorder.LeUint16(buf[off:]) & 0b1111_1111_1111
    		d2 := byteorder.LeUint16(buf[off+1:]) >> 4
    		off += 3
    		if d1 < q {
    			a[j] = fieldElement(d1)
    			j++
    		}
    		if j >= len(a) {
    			break
    		}
    		if d2 < q {
    			a[j] = fieldElement(d2)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 28.4K bytes
    - Viewed (0)
  9. src/net/netip/netip.go

    	if len(b) < 2 {
    		return errors.New("unexpected slice size")
    	}
    	var addr Addr
    	err := addr.UnmarshalBinary(b[:len(b)-2])
    	if err != nil {
    		return err
    	}
    	*p = AddrPortFrom(addr, byteorder.LeUint16(b[len(b)-2:]))
    	return nil
    }
    
    // Prefix is an IP address prefix (CIDR) representing an IP network.
    //
    // The first [Prefix.Bits]() of [Addr]() are specified. The remaining bits match any address.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 17:10:01 UTC 2024
    - 43.2K bytes
    - Viewed (0)
  10. src/encoding/gob/decode.go

    func decUint8(i *decInstr, state *decoderState, value reflect.Value) {
    	v := state.decodeUint()
    	if math.MaxUint8 < v {
    		error_(i.ovfl)
    	}
    	value.SetUint(v)
    }
    
    // decInt16 decodes an integer and stores it as an int16 in value.
    func decInt16(i *decInstr, state *decoderState, value reflect.Value) {
    	v := state.decodeInt()
    	if v < math.MinInt16 || math.MaxInt16 < v {
    		error_(i.ovfl)
    	}
    	value.SetInt(v)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 07 19:10:23 UTC 2023
    - 40.1K bytes
    - Viewed (0)
Back to top