/// <summary> /// Create intance of <see cref="FileHeader"/> /// </summary> /// <returns></returns> public static FileHeader Create() { var result = new FileHeader { HardwareId = new byte[8], FileDate = new byte[16], FileTime = new byte[16], FileType = new byte[16], Blank1 = new byte[16] }; return result; }
private void CreateEntry(ushort blockSize) { // Set FileHeader _fileHeader = FileHeader.Create(); var now = DateTime.Now; // Set default date/time FileDate = now.ToString("yyyy.MM.dd"); FileTime = now.ToString("HH.mm.ss"); // Set id HeaderId = FileMagic; // Block size BlockSize = blockSize; }