- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for BeUint16 (0.14 sec)
-
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) -
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) -
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) -
src/crypto/tls/handshake_server.go
if err != nil { c.sendAlert(alertHandshakeFailure) return err } if skx != nil { if len(skx.key) >= 3 && skx.key[0] == 3 /* named curve */ { c.curveID = CurveID(byteorder.BeUint16(skx.key[1:])) } if _, err := hs.c.writeHandshakeRecord(skx, &hs.finishedHash); err != nil { return err } } var certReq *certificateRequestMsg if c.config.ClientAuth >= RequestClientCert {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 21:30:50 UTC 2024 - 27.6K bytes - Viewed (1) -
src/crypto/tls/handshake_client.go
if err != nil { c.sendAlert(alertUnexpectedMessage) return err } if len(skx.key) >= 3 && skx.key[0] == 3 /* named curve */ { c.curveID = CurveID(byteorder.BeUint16(skx.key[1:])) } msg, err = c.readHandshake(&hs.finishedHash) if err != nil { return err } } var chainToSend *Certificate var certRequested bool
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:10:12 UTC 2024 - 38.6K bytes - Viewed (0) -
src/crypto/tls/handshake_client_test.go
if len(test.extensions) > 0 { var serverInfo bytes.Buffer for _, ext := range test.extensions { pem.Encode(&serverInfo, &pem.Block{ Type: fmt.Sprintf("SERVERINFO FOR EXTENSION %d", byteorder.BeUint16(ext)), Bytes: ext, }) } serverInfoPath := tempFile(serverInfo.String()) defer os.Remove(serverInfoPath) command = append(command, "-serverinfo", serverInfoPath) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:10:12 UTC 2024 - 88.7K bytes - Viewed (0) -
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) -
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) -
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) -
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)