Skip to content

Commit 663668b

Browse files
committed
Use TypeScript, and release 1.1.0
1 parent d8a86a7 commit 663668b

7 files changed

Lines changed: 1721 additions & 1684 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ npm i bytebuf
1414
import { ByteBuf } from "bytebuf"
1515

1616
const data = new Uint8Array(1024)
17-
const buffer = new ByteBuf(data.buffer)
17+
const buffer = ByteBuf.from(data)
1818

1919
buffer.writeInt32(16)
2020
buffer.writeString("Encoding is fun!")

0 commit comments

Comments
 (0)