to-arraybuffer

WebJar for to-arraybuffer

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

to-arraybuffer
Last Version

Last Version

1.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

to-arraybuffer
WebJar for to-arraybuffer
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/jhiesey/to-arraybuffer

Download to-arraybuffer

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/to-arraybuffer/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>to-arraybuffer</artifactId>
    <version>1.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/to-arraybuffer/
implementation 'org.webjars.npm:to-arraybuffer:1.0.1'
// https://jarcasting.com/artifacts/org.webjars.npm/to-arraybuffer/
implementation ("org.webjars.npm:to-arraybuffer:1.0.1")
'org.webjars.npm:to-arraybuffer:jar:1.0.1'
<dependency org="org.webjars.npm" name="to-arraybuffer" rev="1.0.1">
  <artifact name="to-arraybuffer" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='to-arraybuffer', version='1.0.1')
)
libraryDependencies += "org.webjars.npm" % "to-arraybuffer" % "1.0.1"
[org.webjars.npm/to-arraybuffer "1.0.1"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

to-arraybuffer Build Status

Sauce Test Status

Convert from a Buffer to an ArrayBuffer as fast as possible.

Note that in some cases the returned ArrayBuffer is backed by the same memory as the original Buffer (but in other cases it is a copy), so modifying the ArrayBuffer is not recommended.

This module is designed to work both in node.js and in all browsers with ArrayBuffer support when using the Buffer implementation provided by Browserify.

Usage

var toArrayBuffer = require('to-arraybuffer')

var buffer = new Buffer(100)
// Fill the buffer with some data

var ab = toArrayBuffer(buffer)
// `ab` now contains the same data as `buffer`

License

MIT

Versions

Version
1.0.1