We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8a86a7 commit 663668bCopy full SHA for 663668b
7 files changed
README.md
@@ -14,7 +14,7 @@ npm i bytebuf
14
import { ByteBuf } from "bytebuf"
15
16
const data = new Uint8Array(1024)
17
-const buffer = new ByteBuf(data.buffer)
+const buffer = ByteBuf.from(data)
18
19
buffer.writeInt32(16)
20
buffer.writeString("Encoding is fun!")
0 commit comments