Esempio n. 1
0
 /// <summary>
 /// Function to write ECG file of any kind to byte array.
 /// </summary>
 /// <param name="format">ECG file to write</param>
 /// <param name="buffer">byte array to write to</param>
 /// <param name="offset"></param>
 /// <returns>error:
 /// 0x0) success</returns>
 public static void Write(IECGFormat format, byte[] buffer, int offset)
 {
     if (format != null)
     {
         _LastError = (format.Write(buffer, offset) << 2);
     }
     else
     {
         _LastError = 2;
     }
 }
Esempio n. 2
0
 /// <summary>
 /// unction to write ECG file of any kind to a stream
 /// </summary>
 /// <param name="format">ECG file to write</param>
 /// <param name="output">stream to write to</param>
 /// <returns>error:
 /// 0x0) success</returns>
 public static void Write(IECGFormat format, Stream output)
 {
     if (format != null)
     {
         _LastError = (format.Write(output) << 2);
     }
     else
     {
         _LastError = 2;
     }
 }