@lavacoffee/datarw
Version:
A binary data reader/writer aim to work with lavaplayer MessageIO
29 lines (19 loc) • 705 B
Markdown
# @lavacoffee/datarw
> A binary data reader/writer aim to work with lavaplayer MessageIO
[](https://www.npmjs.com/package/@lavacoffee/datarw)
[](https://www.npmjs.com/package/@lavacoffee/datarw)
## Documentation
https://lavacoffee.github.io/datarw
## Writer
```js
import { DataWriter } from "@lavacoffee/datarw"
const writer = new DataWriter()
// ... (more on docs)
const dataBytes = writer.finish()
```
## Reader
```js
import { DataReader } from "@lavacoffee/datarw"
const reader = new DataReader(dataBytes)
// ... (more on docs)
```