DecoderState

scalus.flat.`package`.DecoderState
class DecoderState(val buffer: Uint8Array)

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def bits8(numBits: Int): Byte

Decode up to 8 bits

Decode up to 8 bits

Value parameters

numBits

the Int of bits to decode (0..8)

Attributes

def ensureBits(requiredBits: Int): Unit
def filler(): Unit
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any

Concrete fields

var currPtr: Int

Pointer to the current byte being decoded (0..buffer.byteLength-1)

Pointer to the current byte being decoded (0..buffer.byteLength-1)

Attributes

var usedBits: Int

Number of already decoded bits in the current byte (0..7)

Number of already decoded bits in the current byte (0..7)

Attributes