/// <summary> /// Encode data for network transmission. /// </summary> /// <param name="bw"></param> public override void Encode(BinaryWriter bw) { base.Encode(bw); bw.Write(requestID); timeInterval.Encode(bw); dataQueryDatumSpecification.Encode(bw); }
/// <summary> /// Encode data for network transmission. /// </summary> /// <param name="bw"></param> public override void Encode(BinaryWriter bw) { bw.Write(( byte )protocolVersion); bw.Write(( byte )exerciseID); bw.Write(( byte )pDUType); bw.Write(( byte )protocolFamily); timeStamp.Encode(bw); bw.Write(( ushort )Length); // Use the property so it can be overriden and calculate the length on demand. #if DIS_VERSION_7 bw.Write(ownershipStatus); bw.Write(pduStatus); #else bw.Write(( ushort )0); // Padding #endif isDirty = false; }