metadataClear(_:withDelayedWrites:)
Clears the given ranges within the buffer cache.
Declaration
func metadataClear(_ rangesToClear: [FSMetadataRange], withDelayedWrites: Bool) throwsParameters
- rangesToClear:
The metadata ranges to clear.
- withDelayedWrites:
A Boolean value that determines whether to perform the clear operation with delayed writes. The delay works in the same manner as Delayedmetadatawritefrom:startingat:length:error:. When using delayed writes, the client can flush the metadata with Metadataflush() or Asynchronousmetadataflush(). The system also flushes stale data in the buffer cache periodically.
Discussion
This method clears the specified ranges in the resource’s buffer cache by writing zeroes into them.