Location:
s32buf.h
Link against: estor.lib
TStreamTransfer
Supported from 5.0
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()
, TStreamTransfer()
, TUnlimited
, operator-()
, operator-=()
, operator==()
, operator>()
, operator[]
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.
|
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.
|
TBool operator==(TInt aLength) const;
Tests whether the stream transfer value is equal to the specified value.
|
|
TBool operator>(TInt aLength) const;
Tests whether the stream transfer value is greater than the specified value.
|
|
TInt operator[](TInt aMaxLength) const;
Clips the stream transfer value to the specified value.
In effect, the operator returns the smaller of the specified value and the stream transfer value.
|
|
TStreamTransfer operator-(TInt aLength) const;
Subtracts the specified value from the stream transfer value.
|
|
TStreamTransfer(TUnlimited)
constructor, then this operator does not change the state of the object, and it remains an unlimited type.TStreamTransfer& operator-=(TInt aLength);
Subtracts the specified value from the stream transfer value, updating this stream transfer object.
|
|
TStreamTransfer(TUnlimited)
constructor, then this operator does not change the state of the object, and it remains an unlimited type.TInt Left() const;
Gets the stream transfer value.
|
enum TUnlimited {EUnlimited};
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.
|