@litert/binary
TypeScript icon, indicating that this package has built-in type declarations

0.3.1 • Public • Published

LiteRT/Binary

Strict TypeScript Checked npm version License GitHub issues GitHub Releases

The binary data operate library for LiteRT.

This library currently provides following components:

  • BufferReader: A helper of Buffer that controls the reading position automatically.

  • BufferWriter: A helper of Buffer that controls the writing position automatically.

  • AlignedBufferReader: An implement of BufferReader with C-struct-like alignment supports.

  • AlignedBufferWriter: An implement of BufferWriter with C-struct-like alignment supports.

  • SyncFileReader: A helper of File that controls the reading position automatically, using synchronous IO.

  • SyncFileBufferReader: A helper of File that controls the reading position automatically, using buffer to reduce the synchronous IO.

  • AsyncFileReader: A helper of File that controls the reading position automatically, using asynchronous IO.

  • AsyncFileBufferReader: A helper of File that controls the reading position automatically, using buffer to reduce the asynchronous IO.

  • SyncFileWriter: A helper of File that controls the writing position automatically, using synchronous IO.

  • SyncFileBufferWriter: A helper of File that controls the writing position automatically, using buffer to reduce the synchronous IO.

  • AsyncFileWriter: A helper of File that controls the writing position automatically, using asynchronous IO.

  • AsyncFileBufferWriter: A helper of File that controls the writing position automatically, using buffer to reduce the asynchronous IO.

Installation

npm install @litert/binary --save

Requirements

  • Node.js v14.x (Or newer)
  • TypeScript v4.1.x (Or newer)

License

This library is published under Apache-2.0 license.

Readme

Keywords

Package Sidebar

Install

npm i @litert/binary

Weekly Downloads

3

Version

0.3.1

License

Apache-2.0

Unpacked Size

326 kB

Total Files

114

Last publish

Collaborators

  • fenying