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