Home
last modified time | relevance | path

Searched refs:octets (Results 1 - 23 of 23) sorted by relevance

/third_party/rust/crates/rustix/src/net/
H A Dip.rs50 /// They are usually represented as four octets.
58 /// `Ipv4Addr` provides a [`FromStr`] implementation. The four octets are in decimal
74 /// assert!("012.004.002.000".parse::<Ipv4Addr>().is_err()); // all octets are in octal
76 /// assert!("0xcb.0x0.0x71.0x00".parse::<Ipv4Addr>().is_err()); // all octets are in hex
81 octets: [u8; 4],
163 octets: [u8; 16],
467 /// Creates a new IPv4 address from four eight-bit octets.
487 octets: [a, b, c, d],
541 /// assert_eq!(addr.octets(), [127, 0, 0, 1]);
550 pub const fn octets(
[all...]
/third_party/node/deps/v8/src/strings/
H A Duri.cc37 bool IsReplacementCharacter(const uint8_t* octets, int length) { in IsReplacementCharacter() argument
40 if (length != 3 || octets[0] != 0xEF || octets[1] != 0xBF || in IsReplacementCharacter()
41 octets[2] != 0xBD) { in IsReplacementCharacter()
47 bool DecodeOctets(const uint8_t* octets, int length, in DecodeOctets() argument
50 base::uc32 value = unibrow::Utf8::ValueOf(octets, length, &cursor); in DecodeOctets()
52 !IsReplacementCharacter(octets, length)) { in DecodeOctets()
108 uint8_t octets[unibrow::Utf8::kMaxEncodedSize]; in IntoTwoByte() local
109 octets[0] = decoded; in IntoTwoByte()
123 octets[number_of_continuation_byte in IntoTwoByte()
[all...]
/third_party/jerryscript/jerry-core/ecma/builtin-objects/
H A Decma-builtin-global.c325 lit_utf8_byte_t octets[LIT_UTF8_MAX_BYTES_IN_CODE_POINT]; in ecma_builtin_global_object_decode_uri_helper() local
326 octets[0] = (lit_utf8_byte_t) decoded_byte; in ecma_builtin_global_object_decode_uri_helper()
347 octets[i] = (lit_utf8_byte_t) hex_value; in ecma_builtin_global_object_decode_uri_helper()
352 || !lit_is_valid_utf8_string (octets, bytes_count)) in ecma_builtin_global_object_decode_uri_helper()
359 lit_read_code_point_from_utf8 (octets, bytes_count, &cp); in ecma_builtin_global_object_decode_uri_helper()
435 lit_utf8_byte_t octets[LIT_UTF8_MAX_BYTES_IN_CODE_POINT]; in ecma_builtin_global_object_encode_uri_helper() local
436 memset (octets, LIT_BYTE_NULL, LIT_UTF8_MAX_BYTES_IN_CODE_POINT); in ecma_builtin_global_object_encode_uri_helper()
471 lit_utf8_size_t utf_size = lit_code_point_to_utf8 (cp, octets); in ecma_builtin_global_object_encode_uri_helper()
475 if (ecma_builtin_global_object_character_is_in (octets[0], unescaped_uri_bitset_p)) in ecma_builtin_global_object_encode_uri_helper()
517 lit_utf8_size_t utf_size = lit_code_point_to_utf8 (cp, octets); in ecma_builtin_global_object_encode_uri_helper()
[all...]
/third_party/python/Lib/
H A Dpoplib.py139 octets = len(line)
144 return line[:-2], octets
146 return line[1:-1], octets
147 return line[:-1], octets
165 list = []; octets = 0
171 octets = octets + o
174 return resp, list, octets
238 ['response', ['mesg_num octets', ...], octets]
[all...]
H A Dipaddress.py1200 octets = ip_str.split('.')
1201 if len(octets) != 4:
1202 raise AddressValueError("Expected 4 octets in %r" % ip_str)
1205 return int.from_bytes(map(cls._parse_octet, octets), 'big')
/third_party/curl/lib/
H A Dinet_pton.c103 int saw_digit, octets, ch; in inet_pton4() local
107 octets = 0; in inet_pton4()
124 if(++octets > 4) in inet_pton4()
130 if(octets == 4) in inet_pton4()
138 if(octets < 4) in inet_pton4()
/third_party/libuv/src/
H A Dinet.c177 int saw_digit, octets, ch; in inet_pton4() local
181 octets = 0; in inet_pton4()
195 if (++octets > 4) in inet_pton4()
200 if (octets == 4) in inet_pton4()
207 if (octets < 4) in inet_pton4()
/third_party/node/deps/uv/src/
H A Dinet.c182 int saw_digit, octets, ch; in inet_pton4() local
186 octets = 0; in inet_pton4()
200 if (++octets > 4) in inet_pton4()
205 if (octets == 4) in inet_pton4()
212 if (octets < 4) in inet_pton4()
/third_party/libcoap/src/
H A Dcoap_asn1.c23 size_t octets = (**ptr) & 0x7f; in asn1_len() local
25 while (octets) { in asn1_len()
28 octets--; in asn1_len()
/third_party/node/test/parallel/
H A Dtest-whatwg-encoding-custom-textdecoder-streaming.js12 const octets = {
24 Object.keys(octets).forEach((encoding) => {
26 const encoded = octets[encoding];
/third_party/node/tools/
H A Dgenv8constants.py39 octets = 4 variable
65 global curr_sym, curr_val, curr_octet, outfile, octets
89 if curr_octet > octets:
H A Dmk-ca-bundle.pl236 my @octets = split(/\\/);
237 shift @octets;
238 for (@octets) {
/third_party/curl/scripts/
H A Dmk-ca-bundle.pl547 my @octets = split(/\\/);
548 shift @octets;
549 for (@octets) {
565 my @octets = split(/\\/);
566 shift @octets;
567 for (@octets) {
/third_party/rust/crates/rustix/src/backend/libc/net/
H A Dwrite_sockaddr.rs38 sin_addr: in_addr_new(u32::from_ne_bytes(v4.ip().octets())),
68 in6_addr_new(v6.ip().octets()),
86 in6_addr_new(v6.ip().octets()),
/third_party/node/test/fixtures/wpt/encoding/
H A Dtextdecoder-streaming.any.js7 var octets = {
22 Object.keys(octets).forEach(function(encoding) {
25 var encoded = octets[encoding];
/third_party/rust/crates/rustix/src/backend/linux_raw/net/
H A Dwrite_sockaddr.rs25 s_addr: u32::from_ne_bytes(v4.ip().octets()),
44 u6_addr8: v6.ip().octets(),
H A Dsyscalls.rs1213 s_addr: u32::from_ne_bytes(addr.octets()), in to_imr_addr()
1229 u6_addr8: multiaddr.octets(), in to_ipv6mr_multiaddr()
/third_party/rust/crates/rust-openssl/openssl/src/x509/
H A Dverify.rs141 buf[..4].copy_from_slice(&addr.octets()); in set_ip()
145 buf.copy_from_slice(&addr.octets()); in set_ip()
/third_party/rust/crates/nix/src/sys/socket/
H A Daddr.rs654 let bits = std.octets(); in from_std()
662 pub const fn octets(self) -> [u8; 4] {
668 let bits = self.octets();
676 let octets = self.octets(); in fmt()
677 write!(fmt, "{}.{}.{}.{}", octets[0], octets[1], octets[2], octets[3]) in fmt()
1254 /// Creates a new socket address from IPv4 octets an
[all...]
/third_party/rust/crates/rust-openssl/openssl/src/ssl/
H A Dconnector.rs570 IpAddr::V4(ref addr) => actual == addr.octets(), in matches_ip()
571 IpAddr::V6(ref addr) => actual == addr.octets(), in matches_ip()
/third_party/rust/crates/serde/serde/src/ser/
H A Dimpls.rs857 let mut written = format_u8(self.octets()[0], &mut buf); in serialize()
858 for oct in &self.octets()[1..] { in serialize()
866 self.octets().serialize(serializer) in serialize()
883 self.octets().serialize(serializer) in serialize()
/third_party/python/Modules/
H A Dsocketmodule.c1292 unsigned int octets[6]; in makebdaddr() local
1295 octets[i] = ((*bdaddr) >> (8 * i)) & 0xFF; in makebdaddr()
1299 octets[5], octets[4], octets[3], in makebdaddr()
1300 octets[2], octets[1], octets[0]); in makebdaddr()
/third_party/rust/crates/nix/test/sys/
H A Dtest_socket.rs2489 std::net::Ipv6Addr::LOCALHOST.octets() in test_recverr_v6()

Completed in 30 milliseconds