Skip to content

RoamingBitmap to Uncompressed BitSet/byte[] #556

@jsorel

Description

@jsorel

Hello,

In a format call 'GRIB' there is bitmap section, so far i used a classic java Bitset but on some files it takes a lot of memory.
So I'm trying to use RoamingBitmap instead, but at writing I didn't find any way to get a compact byte[] as in Bitset.toArray.

Maybe I missing it, something like :

BitSet bs = BitSetUtil.toBiset(RoamingBitmap)

Or maybe there is somekind of serializer ? How do you suggest it could be done in a efficient way (looping on all int to rebuild the byte[] would obviously be inefficient) ?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions