|
||
class TStreamTransfer;
Stream transfer object.
Holds and maintains a value that represents how much data is to be transferred, or remains to be transferred, between streams.
Objects of this type are used by ReadL() and WriteL() functions of MStreamBuf
.
Defined in TStreamTransfer
:
EUnlimited
Left()const
Gets the stream transfer value.TStreamTransfer()
Constructs a stream transfer object specifying that there is no explicit limit t...TStreamTransfer(TInt)
Constructs a stream transfer object specifying a length value.TStreamTransfer(TUnlimited)
Constructs a stream transfer object specifying that there is no explicit limit t...TUnlimited
An enumerator type passed to a constructor of this class to indicate that there ...operator>(TInt)const
Tests whether the stream transfer value is greater than the specified value.operator-(TInt)const
Subtracts the specified value from the stream transfer value.operator-=(TInt)
Subtracts the specified value from the stream transfer value, updating this stre...operator==(TInt)const
Tests whether the stream transfer value is equal to the specified value.operator[](TInt)const
inline TStreamTransfer();
Constructs a stream transfer object specifying that there is no explicit limit to the amount of data that can be transferred between streams.
The amount of data to be transferred is only limited by the streams themselves.
The arithmetical operators do not change the state of an unlimited stream transfer object.
inline TStreamTransfer(TInt aMaxLength);
Constructs a stream transfer object specifying a length value.
This value represents the maximum amount of data that can be transferred between streams.
|
inline TStreamTransfer(TUnlimited);
Constructs a stream transfer object specifying that there is no explicit limit to the amount of data that can be transferred between streams.
The amount of data to be transferred is only limited by the streams themselves.
The arithmetical operators do not change the state of an unlimited stream transfer object.
|
inline TBool operator==(TInt aLength) const;
Tests whether the stream transfer value is equal to the specified value.
|
|
inline TBool operator>(TInt aLength) const;
Tests whether the stream transfer value is greater than the specified value.
|
|
inline TStreamTransfer operator-(TInt aLength) const;
Subtracts the specified value from the stream transfer value.
If this stream transfer object was originally constructed as an unlimited type, i.e. using the TStreamTransfer::TStreamTransfer(TUnlimited)
constructor, then this operator does not change the state of the object, and it remains an unlimited type.
|
|
inline TInt operator[](TInt aMaxLength) const;
|
|
inline TStreamTransfer& operator-=(TInt aLength);
Subtracts the specified value from the stream transfer value, updating this stream transfer object.
If this stream transfer object was originally constructed as an unlimited type, i.e. using the TStreamTransfer::TStreamTransfer(TUnlimited)
constructor, then this operator does not change the state of the object, and it remains an unlimited type.
If this stream transfer object was not an unlimited type, then, in debug mode, the function raises a STORE-Stream 13 panic, if the result of the calculation is negative.
|
|
inline TInt Left() const;
Gets the stream transfer value.
|
TUnlimited
An enumerator type passed to a constructor of this class to indicate that there is no explicit limit to the amount of data that can be transferred between streams. The enumeration is not used.
|