Skip to content

0Petya/bitboolean

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

BitBoolean

BitBoolean is a data type for representing booleans in byte format.

The boolean primitive type in Java uses one byte of memory, BitBoolean allows you to to use just one bit of memory for each boolean represented.

However it only does this in multiples of eight. So if you wanted to represent just one boolean, it would still use one byte of memory. But if you wanted to represent four booleans, it would still just use one byte of memory. Eight booleans would take two bytes, and so on.

About

Represent booleans with just one bit

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages