Lines Matching defs:pValue

17 size_t encode<uint64_t>(ByteType*& pBuf, uint64_t pValue) {
20 ByteType byte = pValue & 0x7f;
21 pValue >>= 7;
22 if (pValue)
26 } while (pValue);
36 size_t encode<uint32_t>(ByteType*& pBuf, uint32_t pValue) {
37 if ((pValue & ~0x7f) == 0) {
38 *pBuf++ = static_cast<ByteType>(pValue);
40 } else if ((pValue & ~0x3fff) == 0) {
41 *pBuf++ = static_cast<ByteType>((pValue & 0x7f) | 0x80);
42 *pBuf++ = static_cast<ByteType>((pValue >> 7) & 0x7f);
44 } else if ((pValue & ~0x1fffff) == 0) {
45 *pBuf++ = static_cast<ByteType>((pValue & 0x7f) | 0x80);
46 *pBuf++ = static_cast<ByteType>(((pValue >> 7) & 0x7f) | 0x80);
47 *pBuf++ = static_cast<ByteType>((pValue >> 14) & 0x7f);
49 } else if ((pValue & ~0xfffffff) == 0) {
50 *pBuf++ = static_cast<ByteType>((pValue & 0x7f) | 0x80);
51 *pBuf++ = static_cast<ByteType>(((pValue >> 7) & 0x7f) | 0x80);
52 *pBuf++ = static_cast<ByteType>(((pValue >> 14) & 0x7f) | 0x80);
53 *pBuf++ = static_cast<ByteType>((pValue >> 21) & 0x7f);
56 *pBuf++ = static_cast<ByteType>((pValue & 0x7f) | 0x80);
57 *pBuf++ = static_cast<ByteType>(((pValue >> 7) & 0x7f) | 0x80);
58 *pBuf++ = static_cast<ByteType>(((pValue >> 14) & 0x7f) | 0x80);
59 *pBuf++ = static_cast<ByteType>(((pValue >> 21) & 0x7f) | 0x80);
60 *pBuf++ = static_cast<ByteType>((pValue >> 28) & 0x7f);
67 size_t encode<int64_t>(ByteType*& pBuf, int64_t pValue) {
72 ByteType byte = pValue & 0x7f;
73 pValue >>= 7;
75 if (((pValue == 0) && ((byte & 0x40) == 0)) ||
76 ((pValue == -1) && ((byte & 0x40) == 0x40)))
89 size_t encode<int32_t>(ByteType*& pBuf, int32_t pValue) {
90 return encode<int64_t>(pBuf, static_cast<int64_t>(pValue));