Lines Matching defs:uint8_t
51 uint8_t GetLogLevel()
58 uint8_t g_logLevel = LOG_DEBUG; // tmp set,now debugmode.LOG_OFF when release;;
59 void SetLogLevel(const uint8_t logLevel)
64 uint8_t GetLogLevelByEnv()
85 uint8_t logLevel = static_cast<uint8_t>(atoi(env));
111 void GetLogLevelAndTime(uint8_t logLevel, string &logLevelString, string &timeString)
580 void PrintLogEx(const char *functionName, int line, uint8_t logLevel, const char *msg, ...)
645 void PrintLogEx(const char *functionName, int line, uint8_t logLevel, char *msg, ...)
688 void ReallocBuf(uint8_t **origBuf, int *nOrigSize, size_t sizeWanted)
697 *origBuf = new uint8_t[sizeWanted];
709 buf->base = (char *)new uint8_t[size]();
725 delete[]((uint8_t *)req->data);
737 uint8_t closeRetry = 0;
778 uint8_t closeRetry = 0;
863 int SendToStream(uv_stream_t *handleStream, const uint8_t *buf, const int bufLen)
869 uint8_t *pDynBuf = new uint8_t[bufLen];
885 int SendToStreamEx(uv_stream_t *handleStream, const uint8_t *buf, const int bufLen, uv_stream_t *handleSend,
924 int SendToPollFd(int fd, const uint8_t *buf, const int bufLen)
929 uint8_t *pDynBuf = new uint8_t[bufLen];
1131 temp = reinterpret_cast<char *>((reinterpret_cast<uint8_t *>(argv)) + i);
1220 uint8_t *pDst = nullptr;
1233 uint8_t dynamicBuf = 0;
1237 pDst = new uint8_t[nFileSize + 1](); // tail \0
1247 pDst = reinterpret_cast<uint8_t *>(buf); // The first address of the static array is the array address
1286 int WriteBinFile(const char *pathName, const uint8_t *buf, const size_t bufLen, bool newFile)
1745 int Base64EncodeBuf(const uint8_t *input, const int length, uint8_t *bufOut)
1750 vector<uint8_t> Base64Encode(const uint8_t *input, const int length)
1752 vector<uint8_t> retVec;
1753 uint8_t *pBuf = nullptr;
1759 if (!(pBuf = new uint8_t[base64Size]())) {
1776 inline int CalcDecodeLength(const uint8_t *b64input)
1778 int len = strlen(reinterpret_cast<char *>(const_cast<uint8_t *>(b64input)));
1794 int Base64DecodeBuf(const uint8_t *input, const int length, uint8_t *bufOut)
1807 string Base64Decode(const uint8_t *input, const int length)
1810 uint8_t *pBuf = nullptr;
1816 if (!(pBuf = new uint8_t[length]())) {
1834 uint8_t *istart = (uint8_t *)start;
1835 uint8_t *iend = istart + size;
1839 string Convert2HexStr(uint8_t arr[], int length)
1880 const uint8_t a = 'a';
1881 uint8_t major = (HDC_VERSION_NUMBER >> 28) & 0xff;
1882 uint8_t minor = (HDC_VERSION_NUMBER << 4 >> 24) & 0xff;
1883 uint8_t version = (HDC_VERSION_NUMBER << 12 >> 24) & 0xff;
1884 uint8_t fix = (HDC_VERSION_NUMBER << 20 >> 28) & 0xff; // max 16, tail is p
1915 // callback, uint8_t flag, string msg, const void * data
1916 bool DelayDo(uv_loop_t *loop, const int delayMs, const uint8_t flag, string msg, void *data,
1917 std::function<void(const uint8_t, string &, const void *)> cb)
1921 uint8_t flag;
1924 std::function<void(const uint8_t, string &, const void *)> cb;
2035 uint8_t CalcCheckSum(const uint8_t *data, int len)
2037 uint8_t ret = 0;