Skip to content

Commit

Permalink
Use TypeScript, and release 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Electroid committed Apr 4, 2021
1 parent d8a86a7 commit 663668b
Show file tree
Hide file tree
Showing 7 changed files with 1,721 additions and 1,684 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ npm i bytebuf
import { ByteBuf } from "bytebuf"

const data = new Uint8Array(1024)
const buffer = new ByteBuf(data.buffer)
const buffer = ByteBuf.from(data)

buffer.writeInt32(16)
buffer.writeString("Encoding is fun!")
Expand Down
Loading

0 comments on commit 663668b

Please sign in to comment.