1 // Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
16 #if !defined(__VJCOMP_INL_)
20 Tests if the delta value is compressible into the 16 bit VJ delta format.
21 The aDelta value actually needs a 33 bit signed integer to hold the entire
22 possible range, but the twos complement math works out if it's just
23 stored as a 32 bit unsigned integer.
25 @param aDelta Delta value to test
27 @return ETrue if the value is compressible
29 inline TBool CVJCompressor::IsDeltaCompressible(TUint32 aDelta) const
31 // This test is a faster equivalent to:
32 // (aDelta >= 0) && (aDelta <= 0xffff)
33 // if aDelta were signed
34 return !(aDelta & 0xffff0000);
38 inline TUint8* CVJCompressor::GetTCPOpts(ThdrTCP* aTCPHeader) const
40 Returns a pointer to the start of the TCP options (if there are any).
42 @param aTCPHeader TCP header
44 @return Start of the TCP options
47 TUint8* aPtr = (TUint8*)aTCPHeader+KTCPHeaderSize;
53 #endif // __VJCOMP_INL_