Specs says,
The CheckAvailableBytes method verifies that the specified number of bytes are
available for reading or writing depending on access type.
CPresult (*CheckAvailableBytes)(
CPHandle hContent,
Cpuint nBytesRequested,
CP_CHECKBYTESRESULTTYPE *eResult);
However, for CP_AccessReadWrite mode, there is no way to tell whether available bytes is for reading or writing. It seems that API requires an additional parameter, such as,
CPresult (*CheckAvailableBytes)(
CPHandle hContent,
CPbool isReadingRequest,
Cpuint nBytesRequested,
CP_CHECKBYTESRESULTTYPE *eResult);
Can this be added in to next spec revision?