1.0.0 • Published 9 years ago
to-unsigned-int64 v1.0.0
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
1.0.0
9 years ago