Home
last modified time | relevance | path

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

/external/autotest/client/cros/
Ddhcp_packet.py630 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]
Ddhcp_unittest.py39 def bin2hex(byte_str, justification=20): argument
44 chars = ["x" + (hex(ord(c))[2:].zfill(2)) for c in byte_str]
54 discovery_packet = dhcp_packet.DhcpPacket(byte_str=binary_discovery_packet)
132 packet = dhcp_packet.DhcpPacket(byte_str=data)
Ddhcp_test_server.py241 packet = dhcp_packet.DhcpPacket(byte_str=data)
/external/protobuf/python/google/protobuf/
Dreflection.py71 def ParseMessage(descriptor, byte_str): argument
83 new_msg.ParseFromString(byte_str)
/external/nanopb-c/generator/google/protobuf/
Dreflection.py152 def ParseMessage(descriptor, byte_str): argument
168 new_msg.ParseFromString(byte_str)
/external/protobuf/python/google/protobuf/internal/
Ddecoder.py467 def _ConvertToUnicode(byte_str): argument
469 return local_unicode(byte_str, 'utf-8')