public static IBinaryLog CreateFile(string filename, long headerSize = 0, long recordsCount = 0) { if (headerSize <= 0 && recordsCount <= 0) { throw new ArgumentOutOfRangeException(); } if (headerSize <= 0) { headerSize = ((recordsCount + 1) + (recordsCount + 1) % 2) * BinaryLogRecord.StampSize; } return(BinaryLogFile.CreateFile(filename, headerSize)); }
public static IBinaryLog OpenFile(string filename) { return(BinaryLogFile.OpenFile(filename)); }