Contents

metadataPurge(_:)

Synchronously purges the given ranges from the buffer cache.

Declaration

func metadataPurge(_ rangesToPurge: [FSMetadataRange]) throws

Parameters

  • rangesToPurge:

    The metadata ranges to purge.

Discussion

This method removes the given ranges from the resource’s buffer cache. This process drops any dirty data in the cache, preventing the data from reaching the device.

See Also

Reading and writing data with kernel buffer cache