0.3.1 • Published 2 years ago

@litert/binary v0.3.1

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 years ago

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.

0.3.0

2 years ago

0.3.1

2 years ago

0.2.0

3 years ago

0.1.0

3 years ago