Contents

FSMetadataRange

A range that describes contiguous metadata segments on disk.

Declaration

class FSMetadataRange

Overview

This type represents a range that begins at startOffset and ends at startOffset + segmentLength * segmentCount. Each segment in the range represents a single block in the resource’s buffer cache.

For example, given an FSMetadataRange with the following properties:

  • startOffset = 0

  • segmentLength = 512

  • segmentCount = 8

The range represents eight segments: from 0 to 511, then from 512 to 1023, and so on until a final segment of 3584 to 4095.

Ensure that each metadata segment represents a range that’s already present in the resource’s buffer cache. Similarly, ensure that each segment’s offset and length matches the offset and length of the corresponding block in the buffer cache.

Topics

Creating a metadata range

Accessing range properties

See Also

Supporting types