Programmer Reference : Common File System : Mixing platform-specific and Common File System operations : Converting a platform file descriptor into a CfsFileDescriptor
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.
Last modified date: 01/29/2015