CrImage::JPEG::BitReader
Inherits Reference / Object
BitReader for reading bits from an IO stream Handles JPEG byte stuffing (0xFF 0x00 sequences)
Constructors
new(io : IO)
SourceInstance methods
available_bits
Sourceensure_available_bits(n : Int32) : Bool
Sourcefinish
Sourcepeek_bits(n : Int32) : Int32
Sourceread_bits(n : Int32) : UInt16
Read n bits from the stream as a UInt16 n must be between 1 and 16
saved_marker
Sourceskip_bits(n : Int32) : Nil
Source