gwr/parser/byte_reader
Types
pub opaque type ByteReader
Values
pub fn advance(
from reader: ByteReader,
up_to count: Int,
) -> ByteReader
pub fn bytes_read(from reader: ByteReader) -> Int
pub fn can_read(reader: ByteReader) -> Bool
pub fn create(from data: BitArray) -> ByteReader
pub fn do_read_while(
reader: ByteReader,
eval: fn(BitArray) -> Bool,
accumulator: BitArray,
) -> Result(#(ByteReader, BitArray), parsing_error.ParsingError)
pub fn get_remaining(
from reader: ByteReader,
) -> Result(BitArray, parsing_error.ParsingError)
pub fn is_empty(reader: ByteReader) -> Bool
pub fn peek(
from reader: ByteReader,
) -> Result(BitArray, parsing_error.ParsingError)
pub fn read(
from reader: ByteReader,
take count: Int,
) -> Result(#(ByteReader, BitArray), parsing_error.ParsingError)
pub fn read_remaining(
from reader: ByteReader,
) -> Result(#(ByteReader, BitArray), parsing_error.ParsingError)
pub fn read_while(
from reader: ByteReader,
with eval: fn(BitArray) -> Bool,
) -> Result(#(ByteReader, BitArray), parsing_error.ParsingError)