Location:
obexobjects.h
Link against: obex.lib
class TObexRFileBackedBuffer : public TObexBufferingDetails;
Provides alternate behaviour for a CObexBufObject
, allowing use of a file to hold the object in its entirety. Writes to this object are buffered through the supplied CBufBase
derived object, which is never enlarged. Once it is full, the data is flushed to the file.
TObexBufferingDetails
- Wraps parameters which can affect the buffering method used by the
TObexRFileBackedBuffer
- Provides alternate behaviour for a
Defined in TObexRFileBackedBuffer
:
TObexRFileBackedBuffer()
IMPORT_C TObexRFileBackedBuffer(CBufBase &aBuffer, RFile aFile, CObexBufObject::TFileBuffering aBufferingStrategy);
Build a variant of TObexBufferingDetails
which instructs the CObexBufObject
to use a file as the main data store, buffering writes to this in chunks. Writes are buffered into the supplied CBufBase
derived object, which is not resized. Once it is full, the data contained is written to file. Double buffering can be specified
by setting aBufferingStrategy appropriately. If the file is opened in read only mode, attempts to store data in this object
will cause an Obex error to be signalled in response to the Obex packet which body data.
|