Home | History | Annotate | Download | only in python2.7

Lines Matching full:bytes

38     # get the raw 16 bytes of the UUID
39 >>> x.bytes
43 >>> uuid.UUID(bytes=x.bytes)
61 of 16 bytes (with all the integer fields in big-endian order) as an
62 argument named 'bytes', or a string of 16 bytes (with the first three
68 bytes the UUID as a 16-byte string (containing the six
101 def __init__(self, hex=None, bytes=None, bytes_le=None, fields=None,
104 a string of 16 bytes as the 'bytes' argument, a string of 16 bytes
116 UUID(bytes='\x12\x34\x56\x78'*4)
122 Exactly one of 'hex', 'bytes', 'bytes_le', 'fields', or 'int' must
125 overriding the given 'hex', 'bytes', 'bytes_le', 'fields', or 'int'.
128 if [hex, bytes, bytes_le, fields, int].count(None) != 4:
129 raise TypeError('need one of hex, bytes, bytes_le, fields, or int')
139 bytes = (bytes_le[3] + bytes_le[2] + bytes_le[1] + bytes_le[0] +
142 if bytes is not None:
143 if len(bytes) != 16:
144 raise ValueError('bytes is not a 16-char string')
145 int = long(('%02x'*16) % tuple(map(ord, bytes)), 16)
203 bytes = ''
205 bytes = chr((self.int >> shift) & 0xff) + bytes
206 return bytes
208 bytes = property(get_bytes)
211 bytes = self.bytes
212 return (bytes[3] + bytes[2] + bytes[1] + bytes[0] +
213 bytes[5] + bytes[4] + bytes[7] + bytes[6] + bytes[8:])
389 bytes = map(ord, status.adapter_address)
390 return ((bytes[0]<<40L) + (bytes[1]<<32L) + (bytes[2]<<24L) +
391 (bytes[3]<<16L) + (bytes[4]<<8L) + bytes[5])
430 bytes returned by UuidCreateSequential are fixed, they don't appear
446 return UUID(bytes=_buffer.raw).node
452 return UUID(bytes=_buffer.raw).node
501 return UUID(bytes=_buffer.raw)
528 hash = md5(namespace.bytes + name).digest()
529 return UUID(bytes=hash[:16], version=3)
538 return UUID(bytes=_buffer.raw)
543 return UUID(bytes=os.urandom(16), version=4)
546 bytes = [chr(random.randrange(256)) for i in range(16)]
547 return UUID(bytes=bytes, version=4)
552 hash = sha1(namespace.bytes + name).digest()
553 return UUID(bytes=hash[:16], version=5)