Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A Deno module and helper class that provides an easy way to read different types from a binary array buffer.

License

Notifications You must be signed in to change notification settings

jsimpson/binary_reader

Repository files navigation

Binary Reader

A Deno module helper class that wraps around DataView to provide an easy way to read different types from a binary array buffer while maintaining the current buffer position.

Usage

import { BinaryReader } from "https://deno.land/x/binary_reader@v0.1.6/mod.ts";
const filename = "some-file.bin";
const file = Deno.openSync(filename);
const buffer = Deno.readAllSync(file);
Deno.close(file.rid);
const binaryReader = new BinaryReader(buffer);
let data = binaryReader.readUint8();

About

A Deno module and helper class that provides an easy way to read different types from a binary array buffer.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /