instantiateMediaObject
Create an IOMedia object for media.
Declaration
virtual IOMedia * instantiateMediaObject(
UInt64base,
UInt64byteSize,
UInt32blockSize,
char *mediaName);Parameters
- base:
Byte number of beginning of active data area of the media. Usually zero.
- byteSize:
Size of the data area of the media, in bytes.
- blockSize:
Block size of the media, in bytes.
- mediaName:
Name of the IOMedia object.
Return Value
A pointer to the created IOMedia object, or a null on error.
Overview
This method creates an IOMedia object from the supplied parameters. It is a convenience method to wrap the handful of steps to do the job.
See Also
Miscellaneous
acceptNewMediaaddToBytesTransferredallocateContextbreakUpRequestcheckForMediaconstrainByteCountcopyPhysicalExtentdeblockRequestdecommissionMediadeleteContextejectMediaexecuteRequestformatMediagetDeviceTypeNamegetFormatCapacitiesgetMediaBlockSizegetMediaStategetStatisticgetStatisticshandleClosehandleIsOpenhandleOpenhandleStartincrementErrorsincrementRetriesinitMediaStateinstantiateDesiredMediaObjectisMediaEjectableisMediaRemovableisMediaWritablelockPhysicalExtentsmediaStateHasChangedprepareRequestreadrecordMediaParametersrejectMediarequestIdlesynchronizeCacheunlockPhysicalExtentsunmapvalidateNewMediawrite