public static FunctionType ToFunctionType(BinaryReader reader) { const sbyte form = -0x20; if (Values.ToSByte(reader) != form) { throw new NotImplementedException(); } return(new FunctionType( Values.ToVector(reader, ToValueType), Values.ToVector(reader, ToValueType) )); }
private static ValueType ToValueType(BinaryReader reader) => (ValueType)Values.ToSByte(reader);
public static ElemType ToElemType(BinaryReader reader) => (ElemType)Values.ToSByte(reader);
public static BlockType ToBlockType(BinaryReader reader) => (BlockType)Values.ToSByte(reader);
public static ValueType ToValueType(BinaryReader reader, out uint length) => (ValueType)Values.ToSByte(reader, out length);