DerWriter.writeBitString

void writeBitString(const(ubyte)[] value, ubyte unusedBits = 0)

Writes a DER-encoded BIT STRING.

The content is prefixed with a single byte indicating the number of unused bits in the last data byte.

Parameters

valueThe raw bit-string data bytes.
unusedBitsThe number of unused trailing bits (default 0).