/third_party/rust/crates/rustix/src/net/ |
H A D | ip.rs | 50 /// 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 D | uri.cc | 37 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 D | ecma-builtin-global.c | 325 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 D | poplib.py | 139 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 D | ipaddress.py | 1200 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 D | inet_pton.c | 103 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 D | inet.c | 177 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 D | inet.c | 182 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 D | coap_asn1.c | 23 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 D | test-whatwg-encoding-custom-textdecoder-streaming.js | 12 const octets = { 24 Object.keys(octets).forEach((encoding) => { 26 const encoded = octets[encoding];
|
/third_party/node/tools/ |
H A D | genv8constants.py | 39 octets = 4 variable 65 global curr_sym, curr_val, curr_octet, outfile, octets 89 if curr_octet > octets:
|
H A D | mk-ca-bundle.pl | 236 my @octets = split(/\\/); 237 shift @octets; 238 for (@octets) {
|
/third_party/curl/scripts/ |
H A D | mk-ca-bundle.pl | 547 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 D | write_sockaddr.rs | 38 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 D | textdecoder-streaming.any.js | 7 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 D | write_sockaddr.rs | 25 s_addr: u32::from_ne_bytes(v4.ip().octets()), 44 u6_addr8: v6.ip().octets(),
|
H A D | syscalls.rs | 1213 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 D | verify.rs | 141 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 D | addr.rs | 654 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 D | connector.rs | 570 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 D | impls.rs | 857 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 D | socketmodule.c | 1292 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 D | test_socket.rs | 2489 std::net::Ipv6Addr::LOCALHOST.octets() in test_recverr_v6()
|