buffer.ws
TypeScript icon, indicating that this package has built-in type declarations

1.0.15 • Public • Published

buffer.ws

A simple, light and fast bytebuffer implementation under node.js

Hits Inline docs

Table of Contents

Installation

Install the package:

npm i buffer.ws

Importing the package with require:

var BufferWS = require("buffer.ws");

or with import:

import { BufferWS } from 'buffer.ws';

Usage

Example:

var BufferWS = require("buffer.ws");

var buffer = new BufferWS()
                .writeInt(39)
                .writeString("Hello!")
                .flip();
console.log(buffer.readInt(), buffer.readString()); // 39 Hello!

Wiki

Testing

npm run test

Package Sidebar

Install

npm i buffer.ws

Weekly Downloads

4

Version

1.0.15

License

GPL-3.0-or-later

Unpacked Size

57.9 kB

Total Files

9

Last publish

Collaborators

  • kozennnn