Skip to content

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";constfilename="some-file.bin";constfile=Deno.openSync(filename);constbuffer=Deno.readAllSync(file);Deno.close(file.rid);constbinaryReader=newBinaryReader(buffer);letdata=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

Contributing

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages