from

v1.0.0arrow_drop_down
v1.0.0
v0.0.1
STATUS
Passing
DOWNLOADS
28
LICENSE
MIT
VISIBILITY
Public
PUBLISHED
7 years ago
SIZE
13 KB
A ponyfill for Buffer.from, uses native implementation if available.
2 contributors
Install from as a package?
Copied
npm i @bit/bit.utils.buffer.from
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
import
any of the 1 million components
and packages in Bit or NPM to the example.
import Button from '@bit/grommet.grommet.button';
import Lodash from 'lodash';
toggle layout
chevron_left
chevron_right
buffer/from ()

A ponyfill for Buffer.from, uses native implementation if available.

Test Summary

#buffer/from() should allocate a new Buffer using an array of octets

Pass

#buffer/from() should share the same allocated memory as the TypedArray with given offset and length

Pass

#buffer/from() should create a new Buffer containing the given string with utf8 encoding.

Pass

#buffer/from() should copy the passed buffer data onto a new Buffer instance

Pass
Help and resources