LiteRT/Binary
The binary data operate library for LiteRT.
This library currently provides following components:
-
BufferReader
: A helper ofBuffer
that controls the reading position automatically. -
BufferWriter
: A helper ofBuffer
that controls the writing position automatically. -
AlignedBufferReader
: An implement ofBufferReader
with C-struct-like alignment supports. -
AlignedBufferWriter
: An implement ofBufferWriter
with C-struct-like alignment supports. -
SyncFileReader
: A helper ofFile
that controls the reading position automatically, using synchronous IO. -
SyncFileBufferReader
: A helper ofFile
that controls the reading position automatically, using buffer to reduce the synchronous IO. -
AsyncFileReader
: A helper ofFile
that controls the reading position automatically, using asynchronous IO. -
AsyncFileBufferReader
: A helper ofFile
that controls the reading position automatically, using buffer to reduce the asynchronous IO. -
SyncFileWriter
: A helper ofFile
that controls the writing position automatically, using synchronous IO. -
SyncFileBufferWriter
: A helper ofFile
that controls the writing position automatically, using buffer to reduce the synchronous IO. -
AsyncFileWriter
: A helper ofFile
that controls the writing position automatically, using asynchronous IO. -
AsyncFileBufferWriter
: A helper ofFile
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.