to-unsigned-int32
v1.1.0
Published
convert to number of 32 bit buffer
Downloads
3
Readme
convert number to 32 bit buffer (size 8 byte).
Currently only support big endian.
also checkout from-unsigned-int32.
Install
npm i to-unsigned-int32
Usage
var toUInt32 = require('to-unsigned-int32')
toUInt32(12, function (err, res) {
console.log(res) //<Buffer 00 00 00 0c>
})
Module only support async api.
n
can be number in any base.
callback
get two arguments:
An error object.
Buffer with length of 4.
licence
=== MIT