Skip to content

Please consider making Base public #8

@sgmihai

Description

@sgmihai

Base: seq[T]

Base is not public so it's not very convenient to directly map a chunk of data, like a string, that is already the bitfield we want:

  bitField = newBitVector[uint](strBitField.len*8)
  copyMem(bitField.Base[0].addr, strBitField[0].unsafeAddr, strBitField.len)

That, or make helper procs to init bitfield from most common sequential data structures. But still I see no harm in making Base public so people can do whatever they want to it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions