This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@nodetf/buffer
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

NBuffer - A Java Buffer Impl

This Buffer class works the same as this

Example

import NBuffer from "@nodetf/buffer";
import { readFileSync } from "node:fs"

// Parameters are like the DataView class
const buffer = new NBuffer(readFileSync("file.bin"));

// Read the first integer from the buffer
const int = buffer.readInt32();
// Read the unsigned byte after the first integer
const ubyte = buffer.readUInt8();

Package Sidebar

Install

npm i @nodetf/buffer

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

40.5 kB

Total Files

31

Last publish

Collaborators

  • n1ghtthef0x