mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-18 04:18:10 +00:00
feat(core): add read_uint64_le
to common/readers
- will be needed for solana tx parsing
This commit is contained in:
parent
b3f4b6ac2b
commit
081995788e
@ -55,3 +55,8 @@ def read_uint16_le(r: BufferReader) -> int:
|
||||
def read_uint32_le(r: BufferReader) -> int:
|
||||
data = r.read_memoryview(4)
|
||||
return int.from_bytes(data, "little")
|
||||
|
||||
|
||||
def read_uint64_le(r: BufferReader) -> int:
|
||||
data = r.read_memoryview(8)
|
||||
return int.from_bytes(data, "little")
|
||||
|
Loading…
Reference in New Issue
Block a user