Skip to content

😋 A small helper module for working with different raw types in javascript

License

Notifications You must be signed in to change notification settings

irbull/byte_type

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

byte_type

Tags Checks License

byte_type is a small helper module for efficiently working with different raw types represented as a bunch of bytes. Now with performance being close to native js performance and ergonomic interfaces!

Usage

import { PackedStruct, u32, u8 } from "https://deno.land/x/byte_type/mod.ts";

const o = new PackedStruct({ "b": u8, "a": u32 }).view(
  new DataView(new ArrayBuffer(5)),
  0,
);

console.log(o.valueOf());

Maintainers

Contribution

Pull request, issues and feedback are very welcome. Code style is formatted with deno fmt and commit messages are done following Conventional Commits spec.

Licence

Copyright 2021-2023, the denosaurs team. All rights reserved. MIT license.

About

😋 A small helper module for working with different raw types in javascript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%