///<summary> /// Reads and returns a HLAparameterHandleValuePair from the specified stream. ///</summary> ///<param name="reader"> the input stream to read from</param> ///<returns> the decoded value</returns> ///<exception cref="IOException"> if an error occurs</exception> public static HLAparameterHandleValuePair Deserialize(HlaEncodingReader reader) { HLAparameterHandleValuePair decodedValue = new HLAparameterHandleValuePair(); decodedValue.ParameterHandle = reader.ReadHLAinteger64BE(); decodedValue.ParameterValue = reader.ReadHLAopaqueData(); return(decodedValue); }
///<summary> Copy constructor. </summary> ///<param name="other"> the other HLAparameterHandleValuePair to copy</param> public HLAparameterHandleValuePair(HLAparameterHandleValuePair other) { this.parameterHandle = other.parameterHandle; this.parameterValue = other.parameterValue; }
///<summary> /// Writes this HLAparameterHandleValuePair to the specified stream. ///</summary> ///<param name="writer"> the output stream to write to</param> ///<param name="obj"> the object to serialize</param> ///<exception cref="IOException"> if an error occurs</exception> public static void Serialize(HlaEncodingWriter writer, HLAparameterHandleValuePair obj) { writer.WriteHLAinteger64BE(obj.ParameterHandle); writer.WriteHLAopaqueData(obj.ParameterValue); }
///<summary> /// Reads and returns a HLAparameterHandleValuePair from the specified stream. ///</summary> ///<param name="reader"> the input stream to read from</param> ///<returns> the decoded value</returns> ///<exception cref="IOException"> if an error occurs</exception> public static HLAparameterHandleValuePair Deserialize(HlaEncodingReader reader) { HLAparameterHandleValuePair decodedValue = new HLAparameterHandleValuePair(); decodedValue.ParameterHandle = reader.ReadHLAinteger64BE(); decodedValue.ParameterValue = reader.ReadHLAopaqueData(); return decodedValue; }