Skip to content

Lry722/packed-array

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

English | 中文

Description

This is an efficient C++ implementation of a PackedArray designed to store custom-sized unsigned integers, featuring:

  • Compact Storage: Data is tightly packed together, with eight 4-bit integers consuming only 32 bits of space instead of the usual 8 bytes or 8 ints.
  • Efficient Operations: Storage and manipulation are achieved through bitwise operations rather than iterating over individual bits.
  • Wide Compatibility: It implements interfaces compatible with STL containers, allowing for seamless integration with various STL algorithms.

Usage

To use this library, simply clone the packed_array.h and packed_array.inl into your project and include them.

The usage of each method are detailed in the comments in packed_array.h .

About

cpp版本PackedArray实现。

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages