Meshbeyn / Projects

namespace NTFSExtensions

public static class Compression

RefillZeroRegions

Refills unallocated regions with zeros.

Signatures

Parameters

this FileStream FS
A FileStream object as a reference to opened stream. You may call this method directly from this object, because this is an extension method.

Remarks

Scans a stream looking for ranges that contain unallocated regions and fills this regions with zeros. After you call this method the sparse stream has no unallocated regions and may become a plain file.

Example

Example for working with sparse streams

See also