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