gwr/parser/types_parser
Functions
pub fn parse_function_type(
from reader: BinaryReader,
) -> Result(#(BinaryReader, FunctionType), String)
Decodes a bit array into a FunctionType. The FunctionType bit array begins with 0x60 byte id and follows with 2 vectors, each containing an arbitrary amount of 1-byte ValueType(s). The first vector represents the list of parameter types of the function, while the second vector represents the list of result types returned by the function.
pub fn parse_global_type(
from reader: BinaryReader,
) -> Result(#(BinaryReader, GlobalType), String)
pub fn parse_limits(
from reader: BinaryReader,
) -> Result(#(BinaryReader, Limits), String)
pub fn parse_value_type(
from reader: BinaryReader,
) -> Result(#(BinaryReader, ValueType), String)