- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 349 for uint16 (0.14 sec)
-
src/vendor/golang.org/x/text/unicode/norm/trie.go
// the value for b is by r.value + (b - r.lo) * stride. func (t *sparseBlocks) lookup(n uint32, b byte) uint16 { offset := t.offset[n] header := t.values[offset] lo := offset + 1 hi := lo + uint16(header.lo) for lo < hi { m := lo + (hi-lo)/2 r := t.values[m] if r.lo <= b && b <= r.hi { return r.value + uint16(b-r.lo)*header.value } if b < r.lo { hi = m } else { lo = m + 1 } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 10 16:32:44 UTC 2023 - 1.2K bytes - Viewed (0) -
src/internal/byteorder/byteorder.go
byte(v>>8), byte(v>>16), byte(v>>24), ) } func LeUint64(b []byte) uint64 { _ = b[7] // bounds check hint to compiler; see golang.org/issue/14808 return uint64(b[0]) | uint64(b[1])<<8 | uint64(b[2])<<16 | uint64(b[3])<<24 | uint64(b[4])<<32 | uint64(b[5])<<40 | uint64(b[6])<<48 | uint64(b[7])<<56 } func LePutUint64(b []byte, v uint64) { _ = b[7] // early bounds check to guarantee safety of writes below b[0] = byte(v)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 10 20:31:29 UTC 2024 - 3.5K bytes - Viewed (0) -
src/cmd/compile/internal/ir/bitset.go
package ir type bitset8 uint8 func (f *bitset8) set(mask uint8, b bool) { if b { *(*uint8)(f) |= mask } else { *(*uint8)(f) &^= mask } } func (f bitset8) get2(shift uint8) uint8 { return uint8(f>>shift) & 3 } // set2 sets two bits in f using the bottom two bits of b. func (f *bitset8) set2(shift uint8, b uint8) { // Clear old bits. *(*uint8)(f) &^= 3 << shift // Set new bits.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 29 22:03:56 UTC 2022 - 734 bytes - Viewed (0) -
src/vendor/golang.org/x/net/idna/trie.go
// the value for b is by r.value + (b - r.lo) * stride. func (t *sparseBlocks) lookup(n uint32, b byte) uint16 { offset := t.offset[n] header := t.values[offset] lo := offset + 1 hi := lo + uint16(header.lo) for lo < hi { m := lo + (hi-lo)/2 r := t.values[m] if r.lo <= b && b <= r.hi { return r.value + uint16(b-r.lo)*header.value } if b < r.lo { hi = m } else { lo = m + 1 } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 13 21:37:23 UTC 2023 - 1.3K bytes - Viewed (0) -
src/vendor/golang.org/x/net/route/interface_classic.go
} l := int(nativeEndian.Uint16(b[:2])) if len(b) < l { return nil, errInvalidMessage } m := &InterfaceAddrMessage{ Version: int(b[2]), Type: int(b[3]), Flags: int(nativeEndian.Uint32(b[8:12])), raw: b[:l], } if runtime.GOOS == "netbsd" { m.Index = int(nativeEndian.Uint16(b[16:18])) } else { m.Index = int(nativeEndian.Uint16(b[12:14])) } var err error
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 1.6K bytes - Viewed (0) -
src/crypto/internal/hpke/hpke_test.go
} t.Cleanup(func() { testingOnlyGenerateKey = nil }) encap, context, err := SetupSender( uint16(kemID), uint16(kdfID), uint16(aeadID), pub, info, ) if err != nil { t.Fatal(err) } expectedEncap := mustDecodeHex(t, setup["enc"]) if !bytes.Equal(encap, expectedEncap) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 22:33:33 UTC 2024 - 4.7K bytes - Viewed (0) -
src/cmd/dist/sys_windows.go
type systeminfo struct { wProcessorArchitecture uint16 wReserved uint16 dwPageSize uint32 lpMinimumApplicationAddress uintptr lpMaximumApplicationAddress uintptr dwActiveProcessorMask uintptr dwNumberOfProcessors uint32 dwProcessorType uint32 dwAllocationGranularity uint32 wProcessorLevel uint16 wProcessorRevision uint16 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 12 16:42:41 UTC 2023 - 1.6K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/unix/ifreq_linux.go
} return nil } // Uint16 returns the Ifreq union data as a C short/Go uint16 value. func (ifr *Ifreq) Uint16() uint16 { return *(*uint16)(unsafe.Pointer(&ifr.raw.Ifru[:2][0])) } // SetUint16 sets a C short/Go uint16 value as the Ifreq's union data. func (ifr *Ifreq) SetUint16(v uint16) { ifr.clear() *(*uint16)(unsafe.Pointer(&ifr.raw.Ifru[:2][0])) = v }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 4.3K bytes - Viewed (0) -
pilot/cmd/pilot-agent/status/ready/probe_test.go
err = probe.Check() g.Expect(err).NotTo(HaveOccurred()) g.Expect(probe.atleastOnceReady).Should(BeTrue()) server.Close() server = testserver.CreateAndStartServer(noServerStats) probe.AdminPort = uint16(server.Listener.Addr().(*net.TCPAddr).Port) err = probe.Check() g.Expect(err).NotTo(HaveOccurred()) g.Expect(probe.atleastOnceReady).Should(BeTrue()) server.Close()
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 31 14:48:28 UTC 2023 - 5.9K bytes - Viewed (0) -
src/net/http/fcgi/fcgi.go
statusCantMultiplex statusOverloaded statusUnknownRole ) type header struct { Version uint8 Type recType Id uint16 ContentLength uint16 PaddingLength uint8 Reserved uint8 } type beginRequest struct { role uint16 flags uint8 reserved [5]uint8 } func (br *beginRequest) read(content []byte) error { if len(content) != 8 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jul 11 18:51:39 UTC 2023 - 5.9K bytes - Viewed (0)