some support for fixed number
This commit is contained in:
1 parent
5b8df2ff20
commit
86eb5e9d7f
8 files changed
+81
-15
No files matched your search
@@ -28,6 +28,7 @@ interface DataSource {
|
||||
|
||||
fun readU32(): UInt = bytesToUInt(readBytes(4))
|
||||
fun readI32(): Int = bytesToInt(readBytes(4))
|
||||
fun readI16(): Short = bytesToShort(readBytes(2))
|
||||
fun readI64(): Long = bytesToLong(readBytes(8))
|
||||
|
||||
fun readDouble() = Double.fromBits(readI64())
|
||||
|
||||
Reference in new issue
Block a user