Programmer's Reference

Converting a platform file descriptor into a CfsFileDescriptor

To convert a platform-specific file descriptor into a CfsFileDescriptor instance, use the on: message as follows:

CfsFileDescriptor on: aPlatformFileDescriptor

This answers an initialized CfsFileDescriptor instance whose platform-specific file descriptor is aPlatformFileDescriptor.

Some platforms can have more than one type of file handle. Ensure that the platform-specific file descriptor specified as the argument to on: is of the same type as that used by the Common File System itself.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]