Home
last modified time | relevance | path

Searched refs:byte_str (Results 1 – 9 of 9) sorted by relevance

/external/autotest/client/cros/
Ddhcp_unittest.py50 def bin2hex(byte_str, justification=20): argument
55 chars = ["x" + (hex(ord(c))[2:].zfill(2)) for c in byte_str]
65 discovery_packet = dhcp_packet.DhcpPacket(byte_str=binary_discovery_packet)
132 packet = dhcp_packet.DhcpPacket(byte_str=byte_string)
157 packet = dhcp_packet.DhcpPacket(byte_str=data)
Ddhcp_packet.py636 def __init__(self, byte_str=None): argument
657 if byte_str is None:
659 if len(byte_str) < OPTIONS_START_OFFSET + 1:
663 self._fields[field] = field.unpack(byte_str[field.offset :
668 while offset < len(byte_str) and ord(byte_str[offset]) != OPTION_END:
669 data_type = ord(byte_str[offset])
673 data_length = ord(byte_str[offset])
675 data = byte_str[offset: offset + data_length]
Ddhcp_test_server.py247 packet = dhcp_packet.DhcpPacket(byte_str=data)
/external/protobuf/python/google/protobuf/
Dreflection.py62 def ParseMessage(descriptor, byte_str): argument
77 new_msg.ParseFromString(byte_str)
/external/grpc-grpc/src/python/grpcio/grpc/_cython/_cygrpc/
Dgrpc_gevent.pyx.pxi39 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/
Dshader_validation.h288 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/
Dfpdf_text.cpp358 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/
Ddecoder.py546 byte_str = memview.tobytes()
548 value = local_unicode(byte_str, 'utf-8')
/external/pdfium/fxjs/
Dcjs_field.cpp725 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()