Encode and decode big endian unsigned 64-bit integers from and to ByteArrays
npm install @datkt/uint64beuint64be
========
Encode and decode 64 bit integers into ByteArrays and Longs
The datkt.uint64be package an be installed with NPM.
``sh`
$ npm install @datkt/uint64be
* Kotlin/Native and the
konanc command line program.
`shnode_modules/Compile a program in 'main.kt' and link uint64be.klib found in
`
$ konanc -r node_modules/@datkt -l uint64be/uint64be main.kt
where main.kt might be
`kotlin
import datkt.uint64be.*
fun main(args: Array
val enc = encode(0xdeadbeef)
val dec = decode(env) // 0xdeadbeef == dec
}
``
Encodes an unsigned 64 bit integer number into a ByteArray.
Decodes an unsigned 64 bit integer from a ByteArray into a Long.
Inline function to return constant length of 8 bytes
* https://github.com/mafintosh/uint64be
MIT