protected virtual void WriteHeader(string name, DateTime lastModificationTime, long count, int userId, int groupId, int mode) { var header = new TarHeader { FileName = name, LastModification = lastModificationTime, SizeInBytes = count, UserId = userId, GroupId = groupId, Mode = mode }; OutStream.Write(header.GetHeaderValue(), 0, header.HeaderSize); }