gwr/parser/binary_reader

Types

pub type BinaryReader {
  BinaryReader(data: BitArray, current_position: Int)
}

Constructors

  • BinaryReader(data: BitArray, current_position: Int)

Functions

pub fn advance(
  from reader: BinaryReader,
  up_to count: Int,
) -> BinaryReader
pub fn bytes_read(from reader: BinaryReader) -> Int
pub fn can_read(reader: BinaryReader) -> Bool
pub fn create(from data: BitArray) -> BinaryReader
pub fn get_remaining(
  from reader: BinaryReader,
) -> Result(BitArray, String)
pub fn is_empty(reader: BinaryReader) -> Bool
pub fn read(
  from reader: BinaryReader,
  take count: Int,
) -> Result(#(BinaryReader, BitArray), String)
pub fn read_remaining(
  from reader: BinaryReader,
) -> Result(#(BinaryReader, BitArray), String)
Search Document