|
|
|
@ -79,7 +79,7 @@ def numberToByteArray(n, howManyBytes=None): |
|
|
|
not be larger. The returned bytearray will contain a big-endian |
|
|
|
not be larger. The returned bytearray will contain a big-endian |
|
|
|
encoding of the input integer (n). |
|
|
|
encoding of the input integer (n). |
|
|
|
""" |
|
|
|
""" |
|
|
|
if howManyBytes == None: |
|
|
|
if howManyBytes is None: |
|
|
|
howManyBytes = numBytes(n) |
|
|
|
howManyBytes = numBytes(n) |
|
|
|
b = bytearray(howManyBytes) |
|
|
|
b = bytearray(howManyBytes) |
|
|
|
for count in range(howManyBytes-1, -1, -1): |
|
|
|
for count in range(howManyBytes-1, -1, -1): |
|
|
|
|