TStreamTransfer Class Reference
Constructor & Destructor Documentation
TStreamTransfer()
TStreamTransfer | ( | ) | [inline] |
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.
TStreamTransfer(TInt)
TStreamTransfer | ( | TInt | aMaxLength | ) | [inline] |
Constructs a stream transfer object specifying a length value.
This value represents the maximum amount of data that can be transferred between streams.
Parameters
TInt aMaxLength | The maximum length of data that can be transferred. In debug mode, the function raises a STORE-Stream 13 panic, if this value is negative. |
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.
Member Functions Documentation
Left()
TInt
| Left | ( | ) | const [inline] |
Gets the stream transfer value.
__DbgChkNonNegative(TInt)
IMPORT_C void | __DbgChkNonNegative | ( | TInt | aLength | ) | [private, static] |
operator-(TInt)
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(TUnlimited) constructor, then this operator does not change the state of the object, and it remains an unlimited type.
Parameters
TInt aLength | The length to be subtracted. In debug mode, the function raises a STORE-Stream 13 panic, if this value is negative. |
operator-=(TInt)
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(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.
Parameters
TInt aLength | The length to be subtracted. In debug mode, the function raises a STORE-Stream 13 panic, if this value is negative. |
operator==(TInt)
Tests whether the stream transfer value is equal to the specified value.
Parameters
TInt aLength | The length to compared. In debug mode, the function raises a STORE-Stream 13 panic, if this value is negative. |
operator>(TInt)
Tests whether the stream transfer value is greater than the specified value.
Parameters
TInt aLength | The length to compared. In debug mode, the function raises a STORE-Stream 13 panic, if this value is negative. |
operator[](TInt)
TInt
| operator[] | ( | TInt | aMaxLength | ) | const [inline] |
Member Enumerations Documentation
Enum 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.
Member Data Documentation
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.