to-unsigned-int64
v1.0.0
Published
convert 64 bit integer to buffer
Downloads
5
Maintainers
Readme
convert number to 64 bit buffer (size 8).
Currently only support big endian.
also checkout to-unsigned-int32.
Install
npm i to-unsigned-int64
Usage
var toUInt64 = require('to-unsigned-int64')
console.log(toUInt64(0x1ffffffff)) //<Buffer 00 00 00 01 ff ff ff ff>
n
can be number in any base.
returns buffer with length 8.
licence
MIT