JSPM

from-unsigned-int32

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4
  • Score
    100M100P100Q30105F
  • License MIT

convert 32 bit buffer to integer

Package Exports

  • from-unsigned-int32

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (from-unsigned-int32) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

js-standard-style

convert 32 bit buffer (size 4 byte) to number (base 10).

Currently only support big endian.

Also checkout to-unsigned-int32

Install

npm i from-unsigned-int32

Usage

var fromUInt32 = require('from-unsigned-int32')

fromUInt32(buffr /*<Buffer 00 00 00 0c>*/, function (err, res) {
    console.log(res) //12
})

Module only support async api.

buffr should be Buffer with length 4.

callback get two arguments:

  1. An error object.

  2. number (base 10).

licence

=== MIT