/// <summary> /// Record the binary data to the project. /// This will take the binary data and add it /// to the projects buffer to written to the file. /// </summary> /// <param name="data">Data to write.</param> /// <returns>TRUE = Data written to binary file.</returns> public bool RecordGps2(byte[] data) { // Create the writer if it does not exist if (_gps2Writer == null) { _gps2Writer = new AdcpBinaryWriter(this, Options.MaxFileSize, AdcpBinaryWriter.FileType.GPS2); _gps2Writer.SerialNumber = SerialNumber.ToString(); _gps2Writer.ResetFileName(); } // Add the data to the writer if (_gps2Writer != null) { _gps2Writer.AddIncomingData(data); return true; } return false; }