JCL Help:NtfsGetAllocRangeEntry

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Extracts an entry from the ranges record.


Pascal

 function NtfsGetAllocRangeEntry(const Ranges: TNtfsAllocRanges; Index: TJclAddr): TFileAllocatedRangeBuffer;


Parameters

Parameters Description
const Ranges: TNtfsAllocRanges The Ranges record returned from NtfsQueryAllocRanges.
Index: TJclAddr 0 based index of the entry to extract.


Return Value

The function returns the TFileAllocatedRangeBuffer at the specified Index. The index is asserted to be within range.


Description

NtfsGetAllocRangeEntry extracts an entry from the Ranges record returned from a call to NtfsQueryAllocRanges. The returned TFileAllocatedRangeBuffer record contains the following members:

  • FileOffset: TLargeInteger The starting byte offset of the allocated range.
  • Length: TLargeInteger The length, in bytes, of the allocated range.


See Also

NtfsSetSparse TNtfsAllocRanges NtfsQueryAllocRanges


About

Unit

JclNTFS


Donator

Marcel van Brakel


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page