Skip to content

doddydigitaldesign/ddd-bitfield

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ddd-bitfield

A simple typed bitfield class utilizing the template literal support coming in Typescript 4.1.

Example

const flags = new BitField(0b010);
console.log(flags.get()); // 2
flags.set(0);
console.log(flags.get()); // 3

About

Typescript bitfield using template literal types.

Topics

Resources

Stars

Watchers

Forks