Important: The information in this document is obsolete and should not be used for new development.
PBAllocContig
You can use thePBAllocContigfunction to allocate additional contiguous blocks to an open file.
FUNCTION PBAllocContig (paramBlock: ParmBlkPtr; async: Boolean): OSErr;
paramBlock- A pointer to a basic File Manager parameter block.
async- A Boolean value that specifies asynchronous (
TRUE) or synchronous (FALSE) execution.
--> ioCompletionProcPtrA pointer to a completion routine. <-- ioResultOSErrThe result code of the function. --> ioRefNumIntegerA file reference number. --> ioReqCountLongIntThe number of bytes requested. <-- ioActCountLongIntThe number of bytes allocated, rounded up to the nearest multiple
of the allocation block size.DESCRIPTION
ThePBAllocContigfunction is identical to thePBAllocatefunction except that if there isn't enough contiguous empty space on the volume to satisfy the allocation request,PBAllocContigdoes nothing and returnsdskFulErras 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, callPBAllocateinstead.ASSEMBLY-LANGUAGE INFORMATION
The trap macro forPBAllocContigis_AllocContig.RESULT CODES