TarBuffer.IsEOFBlock Method

SharpZip Compression Library

SharpZip Compression Library

TarBuffer.IsEOFBlock Method 

Determine if an archive block indicates End of Archive. End of archive is indicated by a block that consists entirely of null bytes. All remaining blocks for the record should also be null's However some older tars only do a couple of null blocks (Old GNU tar for one) and also partial records

public bool IsEOFBlock(
   byte[] block
);

Parameters

block
The data block to check.

See Also

TarBuffer Class | ICSharpCode.SharpZipLib.Tar Namespace