Exemplo n.º 1
0
        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)
                       ));
        }
Exemplo n.º 2
0
 private static ValueType ToValueType(BinaryReader reader) => (ValueType)Values.ToSByte(reader);
Exemplo n.º 3
0
 public static ElemType ToElemType(BinaryReader reader) => (ElemType)Values.ToSByte(reader);
Exemplo n.º 4
0
 public static BlockType ToBlockType(BinaryReader reader) => (BlockType)Values.ToSByte(reader);
Exemplo n.º 5
0
 public static ValueType ToValueType(BinaryReader reader, out uint length) => (ValueType)Values.ToSByte(reader, out length);