npm.io
0.3.1 • Published 3 years ago

@litert/binary

Licence
Apache-2.0
Version
0.3.1
Deps
1
Size
318 kB
Vulns
0
Weekly
0

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.

Keywords