Searched refs:raw_bytes (Results 1 – 2 of 2) sorted by relevance
39 def bytes2int(raw_bytes): argument51 return int(binascii.hexlify(raw_bytes), 16)93 raw_bytes = [ZERO_BYTE]96 raw_bytes = []106 raw_bytes.insert(0, byte(number & 0xFF))115 return padding + EMPTY_BYTE.join(raw_bytes)118 def bytes_leading(raw_bytes, needle=ZERO_BYTE): argument134 for x in raw_bytes:185 raw_bytes = b('')192 raw_bytes = pack(pack_format, num & max_uint) + raw_bytes[all …]
342 def _urlsafe_b64encode(raw_bytes): argument343 if isinstance(raw_bytes, six.text_type):344 raw_bytes = raw_bytes.encode('utf-8')345 return base64.urlsafe_b64encode(raw_bytes).decode('ascii').rstrip('=')