Skip to content

.bin() doesn't output leading zeros #2

@nickboucher

Description

@nickboucher

While the internal representation appears to be correct, calling .bin() doesn't output the leading zeros for a given byte. For example,

var bits = new BitString();
bits.writebits(1,3);
bits.bin();

outputs "100000" rather than "00100000"

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