• Home
  • Raw
  • Download

Lines Matching refs:pValue

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