Searched refs:byte_str (Results 1 – 9 of 9) sorted by relevance
/external/autotest/client/cros/ |
D | dhcp_unittest.py | 45 def bin2hex(byte_str, justification=20): argument 50 chars = ["x" + (hex(ord(c))[2:].zfill(2)) for c in byte_str] 60 discovery_packet = dhcp_packet.DhcpPacket(byte_str=binary_discovery_packet) 127 packet = dhcp_packet.DhcpPacket(byte_str=byte_string) 152 packet = dhcp_packet.DhcpPacket(byte_str=data)
|
D | dhcp_packet.py | 630 def __init__(self, byte_str=None): argument 651 if byte_str is None: 653 if len(byte_str) < OPTIONS_START_OFFSET + 1: 657 self._fields[field] = field.unpack(byte_str[field.offset : 662 while offset < len(byte_str) and ord(byte_str[offset]) != OPTION_END: 663 data_type = ord(byte_str[offset]) 667 data_length = ord(byte_str[offset]) 669 data = byte_str[offset: offset + data_length]
|
D | dhcp_test_server.py | 241 packet = dhcp_packet.DhcpPacket(byte_str=data)
|
/external/protobuf/python/google/protobuf/ |
D | reflection.py | 62 def ParseMessage(descriptor, byte_str): argument 77 new_msg.ParseFromString(byte_str)
|
/external/grpc-grpc/src/python/grpcio/grpc/_cython/_cygrpc/ |
D | grpc_gevent.pyx.pxi | 39 byte_str = _decode(<bytes>res_str[:str_len]) 40 if byte_str.endswith(':' + str(port)): 41 byte_str = byte_str[:(0 - len(str(port)) - 1)] 42 byte_str = byte_str.lstrip('[') 43 byte_str = byte_str.rstrip(']') 44 byte_str = '{}'.format(byte_str) 45 return byte_str, port
|
/external/vulkan-validation-layers/layers/ |
D | shader_validation.h | 288 char byte_str[3] = {}; in Sha1ToVkUuid() local 290 byte_str[0] = padded_sha1_str[2 * i + 0]; in Sha1ToVkUuid() 291 byte_str[1] = padded_sha1_str[2 * i + 1]; in Sha1ToVkUuid() 292 uuid[i] = static_cast<uint8_t>(strtol(byte_str, NULL, 16)); in Sha1ToVkUuid()
|
/external/pdfium/fpdfsdk/ |
D | fpdf_text.cpp | 358 ByteString byte_str = str.ToUTF16LE(); in FPDFText_GetText() local 359 size_t byte_str_len = byte_str.GetLength(); in FPDFText_GetText() 363 memcpy(result, byte_str.c_str(), byte_str_len); in FPDFText_GetText()
|
/external/protobuf/python/google/protobuf/internal/ |
D | decoder.py | 546 byte_str = memview.tobytes() 548 value = local_unicode(byte_str, 'utf-8')
|
/external/pdfium/fxjs/ |
D | cjs_field.cpp | 725 ByteString byte_str = pRuntime->ToWideString(vp).ToDefANSI(); in set_border_style() local 727 AddDelay_String(FP_BORDERSTYLE, byte_str); in set_border_style() 730 byte_str); in set_border_style()
|