struct

Beryl::Encoding::DistinguishedEncodingRules::BitString

Inherits Struct < Value < Object

A bit string: its bytes and the number of unused bits in the last one (0 to 7, always 0 when there are no bytes).

Constructors

new(bytes : Bytes, unused_bit_count : Int32)
Source

Instance methods

bit_count
Source
bit_set?(index : Int32) : Bool

Returns whether bit index is set, counting from the most significant bit of the first byte as X.690 ยง8.6.2.1 numbers them.

Source
bytes
clone
Source
copy_with(bytes _bytes = @bytes, unused_bit_count _unused_bit_count = @unused_bit_count)
Source
unused_bit_count