17 File Objects Routines

17 Reading and Writing File Data

QuickDraw3D provides routines that you can use to access custom data in a file object. In all cases, the reading or writing occurs at the current file position, and the file position is advanced if the read or write operation completes successfully.

You should call the _Read functions only in a custom read data method (of type kQ3MethodTypeObjectReadData), and you should call the _Write functions only in a custom write method (of type kQ3MethodTypeObjectWrite).<8bat>s

These functions can read and write data in either text or binary files.

17 - Q3Uns8_Read
17 - Q3Uns8_Write
17 - Q3Uns16_Read
17 - Q3Uns16_Write
17 - Q3Uns32_Read
17 - Q3Uns32_Write
17 - Q3Int32_Read
17 - Q3Int32_Write
17 - Q3Uns64_Read
17 - Q3Uns64_Write
17 - Q3Float32_Read
17 - Q3Float32_Write
17 - Q3Float64_Read
17 - Q3Float64_Write
17 - Q3Size_Pad
17 - Q3String_Read
17 - Q3String_Write
17 - Q3RawData_Read
17 - Q3RawData_Write
17 - Q3Point2D_Read
17 - Q3Point2D_Write
17 - Q3Point3D_Read
17 - Q3Point3D_Write
17 - Q3RationalPoint3D_Read
17 - Q3RationalPoint3D_Write
17 - Q3RationalPoint4D_Read
17 - Q3RationalPoint4D_Write
17 - Q3Vector2D_Read
17 - Q3Vector2D_Write
17 - Q3Vector3D_Read
17 - Q3Vector3D_Write
17 - Q3Matrix4x4_Read
17 - Q3Matrix4x4_Write
17 - Q3Tangent2D_Read
17 - Q3Tangent2D_Write
17 - Q3Tangent3D_Read
17 - Q3Tangent3D_Write
17 - Q3Comment_Write

3D Graphics Programming with QuickDraw 3D - 17 OCT 1995

© Apple Computer, Inc.

Let us know what you think of these prototype pages.

Generated with Harlequin WebMaker