Carbon


PBSetForkSizeAsync

Header: Files.h Carbon status: Supported

Changes the size of an open fork.

void PBSetForkSizeAsync (
    FSForkIOParam *paramBlock
);
Parameter descriptions
paramBlock

A pointer to a parameter block.

DISCUSSION

The relevant fields of the parameter block are:

The logical end-of-file will be set to the position indicated by the positionMode and positionOffset parameters.

The fork’s new size may be less than, equal to, or greater than the fork’s current size. If the fork’s new size is greater than the fork’s current size, then the additional bytes (between the old and new size) will have an undetermined value.

If the fork’s current position is larger than the fork’s new size, then the current position will be set to the new fork size. That is, the current position will be equal to the logical end of file.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 9, or later.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)