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