to-unsigned-int64

1.0.0 • Public • Published

js-standard-style

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

Package Sidebar

Install

npm i to-unsigned-int64

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • ichetandhembre