Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 437 for uint16 (0.11 sec)

  1. cmd/os-dirent_namelen_linux.go

    package cmd
    
    import (
    	"bytes"
    	"fmt"
    	"syscall"
    	"unsafe"
    )
    
    func direntNamlen(dirent *syscall.Dirent) (uint64, error) {
    	const fixedHdr = uint16(unsafe.Offsetof(syscall.Dirent{}.Name))
    	nameBuf := (*[unsafe.Sizeof(dirent.Name)]byte)(unsafe.Pointer(&dirent.Name[0]))
    	const nameBufLen = uint16(len(nameBuf))
    	limit := dirent.Reclen - fixedHdr
    	if limit > nameBufLen {
    		limit = nameBufLen
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Aug 19 01:35:22 UTC 2021
    - 1.5K bytes
    - Viewed (0)
  2. src/internal/zstd/huff.go

    		next += weightMark[i+1] << i
    		weightMark[i+1] = cur
    	}
    
    	for i, w := range weights[:count] {
    		if w == 0 {
    			continue
    		}
    		length := uint32(1) << (w - 1)
    		tval := uint16(i)<<8 | (uint16(tableBits) + 1 - uint16(w))
    		start := weightMark[w]
    		for j := uint32(0); j < length; j++ {
    			table[start+j] = tval
    		}
    		weightMark[w] += length
    	}
    
    	return tableBits, off, nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 18 20:34:13 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  3. src/internal/types/testdata/fixedbugs/issue49705.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package p
    
    type Integer interface {
    	~int | ~int8 | ~int16 | ~int32 | ~int64 |
    	~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64 | ~uintptr
    }
    
    func shl[I Integer](n int) I {
    	return 1 << n
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 02 02:58:32 UTC 2022
    - 347 bytes
    - Viewed (0)
  4. src/go/parser/testdata/linalg.go2

    package linalg
    
    import "math"
    
    // Numeric is type bound that matches any numeric type.
    // It would likely be in a constraints package in the standard library.
    type Numeric interface {
    	~int|~int8|~int16|~int32|~int64|
    		~uint|~uint8|~uint16|~uint32|~uint64|~uintptr|
    		~float32|~float64|
    		~complex64|~complex128
    }
    
    func DotProduct[T Numeric](s1, s2 []T) T {
    	if len(s1) != len(s2) {
    		panic("DotProduct: slices of unequal length")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 15:34:22 UTC 2021
    - 2K bytes
    - Viewed (0)
  5. pkg/proxy/ipvs/testing/util.go

    // RS is the RealServer of this expected VirtualServer
    type ExpectedVirtualServer struct {
    	VSNum    int
    	IP       string
    	Port     uint16
    	Protocol string
    	RS       []ExpectedRealServer
    }
    
    // ExpectedRealServer is the expected ipvs RealServer
    type ExpectedRealServer struct {
    	IP   string
    	Port uint16
    }
    
    // ExpectedIptablesChain is a map of expected iptables chain and jump rules
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 19 01:20:51 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  6. src/internal/zstd/literals.go

    	}
    
    	streamSize1 := binary.LittleEndian.Uint16(data[off:])
    	streamSize2 := binary.LittleEndian.Uint16(data[off+2:])
    	streamSize3 := binary.LittleEndian.Uint16(data[off+4:])
    	off += 6
    
    	tot := uint64(streamSize1) + uint64(streamSize2) + uint64(streamSize3)
    	if tot > uint64(totalStreamsSize)-6 {
    		return nil, r.makeEOFError(off)
    	}
    	streamSize4 := uint32(totalStreamsSize) - 6 - uint32(tot)
    
    	off--
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 14:30:10 UTC 2023
    - 8.8K bytes
    - Viewed (0)
  7. test/typeparam/list.go

    // license that can be found in the LICENSE file.
    
    package main
    
    import (
    	"fmt"
    )
    
    type Ordered interface {
    	~int | ~int8 | ~int16 | ~int32 | ~int64 |
    		~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64 | ~uintptr |
    		~float32 | ~float64 |
    		~string
    }
    
    // _List is a linked list of ordered values of type T.
    type _List[T Ordered] struct {
    	next *_List[T]
    	val  T
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Dec 03 17:08:51 UTC 2022
    - 2.4K bytes
    - Viewed (0)
  8. pkg/proxy/ipvs/util/ipvs_linux.go

    }
    
    // stringToProtocolType returns the protocol type for the given name
    func stringToProtocol(protocol string) uint16 {
    	switch strings.ToLower(protocol) {
    	case "tcp":
    		return uint16(unix.IPPROTO_TCP)
    	case "udp":
    		return uint16(unix.IPPROTO_UDP)
    	case "sctp":
    		return uint16(unix.IPPROTO_SCTP)
    	}
    	return uint16(0)
    }
    
    // protocolTypeToString returns the name for the given protocol.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 22 05:08:41 UTC 2024
    - 9K bytes
    - Viewed (0)
  9. src/encoding/gob/decgen.go

    		state.b.Drop(n)`,
    	},
    	{
    		"uint",
    		"Uint",
    		`x := state.decodeUint()
    		/*TODO if math.MaxUint32 < x {
    			error_(ovfl)
    		}*/
    		slice[i] = uint(x)`,
    	},
    	{
    		"uint16",
    		"Uint16",
    		`x := state.decodeUint()
    		if math.MaxUint16 < x {
    			error_(ovfl)
    		}
    		slice[i] = uint16(x)`,
    	},
    	{
    		"uint32",
    		"Uint32",
    		`x := state.decodeUint()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 20 14:15:38 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  10. test/typeparam/absdiffimp2.dir/a.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package a
    
    import (
    	"math"
    )
    
    type Numeric interface {
    	~int | ~int8 | ~int16 | ~int32 | ~int64 |
    		~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64 | ~uintptr |
    		~float32 | ~float64 |
    		~complex64 | ~complex128
    }
    
    // numericAbs matches a struct containing a numeric type that has an Abs method.
    type numericAbs[T Numeric] interface {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 09 21:26:42 UTC 2022
    - 2.8K bytes
    - Viewed (0)
Back to top