Important: The information in this document is obsolete and should not be used for new development.
AllocContig
You can use theAllocContig
function to allocate additional contiguous blocks to an open file.
FUNCTION AllocContig (refNum: Integer; VAR count: LongInt): OSErr;
refNum
- The file reference number of an open file.
count
- On input, the number of additional bytes to allocate to the file; on output, the number of bytes allocated, rounded up to the nearest multiple of the allocation block size.
DESCRIPTION
TheAllocContig
function is identical to theAllocate
function except that if there isn't enough contiguous empty space on the volume to satisfy the allocation request,AllocContig
does nothing and returnsdskFulErr
as its function result. If you want to allocate whatever space is available, even when the entire request cannot be filled by the allocation of a contiguous piece, callAllocate
instead.RESULT CODES