示例#1
0
    public static bool Decode(BinaryDecoder decoder, out int value)
    {
        value = 0;
        try
        {
            value = decoder.DecodeInt32();
        }
        catch (System.Exception)
        {
            return(false);
        }

        return(true);
    }
示例#2
0
    public static bool Decode(BinaryDecoder decoder, out FixedPoint value)
    {
        value = new FixedPoint();
        try
        {
            value.RawValue = decoder.DecodeInt32();
        }
        catch (System.Exception)
        {
            return(false);
        }

        return(true);
    }