Storage (StorUtil)
This section describes the utilities defined in the files StorUtil.h and StorUtil.cpp. These utilities wrap theGetDatamethods of the classODStorageUnit, letting you pass in direct pointers to data buffers instead of anODByteArraywrapper.Storage Utility Functions
The storage utility defines the functions described in the following sections.StorageUnitGetValue
The StorageUnitGetValue function takes as a parameter a pointer to an OpenDoc storage unit, the SOMEnvironmentvariable, the buffer size, and a pointer to the buffer. The function returns the number of bytes actually read. The prototype of this function appears as follows:
ODULong StorageUnitGetValue(ODStorageUnit* su, Environment* ev, ODULong size, ODPtr buffer);StorageUnitViewGetValue
The StorageUnitViewGetValue function takes as a parameter a pointer to an OpenDoc storage unit view object, the SOMEnvironmentvariable, the buffer size, and a pointer to the buffer. The function returns the number of bytes actually read. The prototype of this function appears as follows:
ODULong StorageUnitViewGetValue(ODStorageUnitView* suv, Environment* ev, ODULong size, ODPtr buffer);
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help