public void WriteRecord(Stream stream, byte[] data, long versionToWrite) { using (BinaryWriter bw = new BinaryWriter(stream)) { bw.Write(data); } }