@@ -1165,7 +1165,7 @@ public int BufferSize
1165
1165
}
1166
1166
1167
1167
/// <summary>
1168
- /// Get a value indicating an update is in progress .
1168
+ /// Get a value indicating an update has <see cref="BeginUpdate">been started</see> .
1169
1169
/// </summary>
1170
1170
public bool IsUpdating
1171
1171
{
@@ -1186,10 +1186,10 @@ public bool IsUpdating
1186
1186
#endregion
1187
1187
#region Deferred Updating
1188
1188
/// <summary>
1189
- /// Begin updating this <see cref="ZipFile"/> instance .
1189
+ /// Begin updating this <see cref="ZipFile"/> archive .
1190
1190
/// </summary>
1191
- /// <param name="archiveStorage">The archive storage for use during the update.</param>
1192
- /// <param name="dataSource">The data source to utilise during updating.</param>
1191
+ /// <param name="archiveStorage">The <see cref="IArchiveStorage"> archive storage</see> for use during the update.</param>
1192
+ /// <param name="dataSource">The <see cref="IDynamicDataSource"> data source</see> to utilise during updating.</param>
1193
1193
public void BeginUpdate ( IArchiveStorage archiveStorage , IDynamicDataSource dataSource )
1194
1194
{
1195
1195
if ( IsEmbeddedArchive ) {
@@ -1225,16 +1225,19 @@ public void BeginUpdate(IArchiveStorage archiveStorage, IDynamicDataSource dataS
1225
1225
}
1226
1226
1227
1227
/// <summary>
1228
- /// Begin an update to thsi archive.
1228
+ /// Begin updating to this <see cref="ZipFile"/> archive.
1229
1229
/// </summary>
1230
1230
/// <param name="archiveStorage">The storage to use during the update.</param>
1231
1231
public void BeginUpdate ( IArchiveStorage archiveStorage )
1232
1232
{
1233
1233
BeginUpdate ( archiveStorage , new DynamicDiskDataSource ( ) ) ;
1234
1234
}
1235
+
1235
1236
/// <summary>
1236
- /// Begin updating this <see cref="ZipFile"/> instance .
1237
+ /// Begin updating this <see cref="ZipFile"/> archive .
1237
1238
/// </summary>
1239
+ /// <seealso cref="CommitUpdate"></seealso>
1240
+ /// <seealso cref="AbortUpdate"></seealso>
1238
1241
public void BeginUpdate ( )
1239
1242
{
1240
1243
if ( Name == null ) {
@@ -1248,6 +1251,8 @@ public void BeginUpdate()
1248
1251
/// <summary>
1249
1252
/// Commit current updates, updating this archive.
1250
1253
/// </summary>
1254
+ /// <seealso cref="BeginUpdate"></seealso>
1255
+ /// <seealso cref="AbortUpdate"></seealso>
1251
1256
public void CommitUpdate ( )
1252
1257
{
1253
1258
CheckUpdating ( ) ;
@@ -1272,8 +1277,10 @@ public void CommitUpdate()
1272
1277
}
1273
1278
1274
1279
/// <summary>
1275
- /// Abort an update .
1280
+ /// Abort updating leaving the archive unchanged .
1276
1281
/// </summary>
1282
+ /// <seealso cref="BeginUpdate"></seealso>
1283
+ /// <seealso cref="CommitUpdate"></seealso>
1277
1284
public void AbortUpdate ( )
1278
1285
{
1279
1286
updates_ = null ;
@@ -1398,7 +1405,7 @@ public void AddDirectory(string directoryName)
1398
1405
#region Modifying Entries
1399
1406
/* Modify not yet ready for public consumption.
1400
1407
Direct modification of an entry should not overwrite original data before its read.
1401
- Sufe mode is trivial in this sense.
1408
+ Safe mode is trivial in this sense.
1402
1409
public void Modify(ZipEntry original, ZipEntry updated)
1403
1410
{
1404
1411
if ( original == null ) {
@@ -1533,7 +1540,6 @@ void WriteLocalEntryHeader(ZipUpdate update)
1533
1540
}
1534
1541
1535
1542
WriteLEShort ( ( byte ) entry . CompressionMethod ) ;
1536
-
1537
1543
WriteLEInt ( ( int ) entry . DosTime ) ;
1538
1544
1539
1545
if ( ! entry . HasCrc ) {
@@ -1677,7 +1683,7 @@ int WriteCentralDirectoryHeader(ZipEntry entry)
1677
1683
ed . AddNewEntry ( 1 ) ;
1678
1684
}
1679
1685
else {
1680
- // Should already be done when local header was added.
1686
+ // Should have already be done when local header was added.
1681
1687
ed . Delete ( 1 ) ;
1682
1688
}
1683
1689
0 commit comments