Home
last modified time | relevance | path

Searched refs:length (Results 1 - 18 of 18) sorted by relevance

/ide/tools/previewer/test/mock/util/
H A DMockLocalSocket.cpp55 int64_t LocalSocket::ReadData(char* data, size_t length) const in ReadData()
57 return length; in ReadData()
60 size_t LocalSocket::WriteData(const void* data, size_t length) const in WriteData()
62 return length; in WriteData()
H A DMockWebSocketServer.cpp62 size_t WebSocketServer::WriteData(unsigned char* data, size_t length) in WriteData() argument
65 return length; in WriteData()
/ide/tools/previewer/util/unix/
H A DLocalSocket.cpp38 std::size_t length = name.copy(un.sun_path, name.size()); in ConnectToServer() local
39 un.sun_path[length] = '\0'; in ConnectToServer()
74 int64_t LocalSocket::ReadData(char* data, size_t length) const in ReadData()
76 if (length > UINT32_MAX) { in ReadData()
77 ELOG("LocalSocket::ReadData length must < %d", UINT32_MAX); in ReadData()
88 int32_t readSize = recv(socketHandle, data, length, 0); in ReadData()
100 size_t LocalSocket::WriteData(const void* data, size_t length) const in WriteData()
102 if (length > UINT32_MAX) { in WriteData()
103 ELOG("LocalSocket::WriteData length must < %d", UINT32_MAX); in WriteData()
107 ssize_t writeSize = send(socketHandle, str.c_str(), length, in WriteData()
[all...]
/ide/tools/previewer/util/windows/
H A DLocalSocket.cpp64 int64_t LocalSocket::ReadData(char* data, size_t length) const in ReadData()
66 if (length > UINT32_MAX) { in ReadData()
67 ELOG("LocalSocket::ReadData length must < %d", UINT32_MAX); in ReadData()
80 if (!ReadFile(pipeHandle, data, static_cast<DWORD>(length), &readSize, NULL)) { in ReadData()
88 size_t LocalSocket::WriteData(const void* data, size_t length) const in WriteData()
90 if (length > UINT32_MAX) { in WriteData()
91 ELOG("LocalSocket::WriteData length must < %d", UINT32_MAX); in WriteData()
96 if (!WriteFile(pipeHandle, data, static_cast<DWORD>(length), &writeSize, nullptr)) { in WriteData()
106 WriteData(data.c_str(), data.length() + 1); in operator <<()
H A DStringHelper.cpp35 ::MultiByteToWideChar(CP_ACP, 0, str.c_str(), str.length(), pwBuf, nwLen); in StringToUtf8()
76 MultiByteToWideChar(CP_UTF8, 0, str.c_str(), str.length(), pwBuf, nwLen); in Utf8ToString()
/ide/tools/previewer/test/fuzztest/
H A DChangeJsonUtil.cpp46 int length = strVal.length() + 1; in ModifyObject() local
48 void* ptr = malloc(length * sizeof(char)); in ModifyObject()
52 errno_t ret1 = strcpy_s(item->valuestring, length, strVal.c_str()); // 复制字符串内容 in ModifyObject()
102 int length = strVal.length() + 1; in ModifyObject4ChangeType() local
103 void* ptr = malloc(length * sizeof(char)); in ModifyObject4ChangeType()
107 errno_t ret2 = strcpy_s(item->valuestring, length, strVal.c_str()); // 复制字符串内容 in ModifyObject4ChangeType()
/ide/tools/previewer/mock/lite/
H A DAblityKit.cpp40 const uint8_t* msgBody, uint32_t length, uint32_t successCallbackFunc, in SendMsgToPeerApp()
44 (void)length; in SendMsgToPeerApp()
39 SendMsgToPeerApp(bool isLocalMsg, const char* callingPkgName, const char* calledPkgName, const uint8_t* msgBody, uint32_t length, uint32_t successCallbackFunc, uint32_t failCallbackFunc, uint32_t context) SendMsgToPeerApp() argument
/ide/tools/previewer/mock/rich/
H A DVirtualScreenImpl.cpp141 bool VirtualScreenImpl::LoadDocCallback(const void* data, const size_t length, const int32_t width, in LoadDocCallback() argument
154 GetInstance().lengthTemp = length; in LoadDocCallback()
158 if (length <= 0) { in LoadDocCallback()
161 GetInstance().loadDocTempBuffer = new(std::nothrow) uint8_t[length]; in LoadDocCallback()
167 std::copy(dataPtr, dataPtr + length, GetInstance().loadDocTempBuffer); in LoadDocCallback()
181 bool VirtualScreenImpl::Callback(const void* data, const size_t length, in Callback() argument
197 if (!LoadDocCallback(data, length, width, height, timeStamp)) { in Callback()
201 GetInstance().bufferSize = length + GetInstance().headSize; in Callback()
209 return GetInstance().SendPixmap(data, length, width, height); in Callback()
324 FLOG("VirtualScreenImpl::Send length mus in Send()
348 SendPixmap(const void* data, size_t length, int32_t retWidth, int32_t retHeight) SendPixmap() argument
[all...]
H A DVirtualScreenImpl.h43 static bool LoadDocCallback(const void* data, const size_t length,
45 static bool Callback(const void* data, const size_t length, const int32_t width, const int32_t height,
59 bool SendPixmap(const void* data, size_t length, int32_t retWidth, int32_t retHeight);
/ide/tools/previewer/util/
H A DLocalSocket.h43 int64_t ReadData(char* data, size_t length) const;
44 size_t WriteData(const void* data, size_t length) const;
H A DWebSocketServer.h33 size_t WriteData(unsigned char* data, size_t length);
H A DWebSocketServer.cpp129 size_t WebSocketServer::WriteData(unsigned char* data, size_t length) in WriteData() argument
135 return lws_write(webSocket, data, length, LWS_WRITE_BINARY); in WriteData()
H A DTimeTool.cpp68 int len = tm.length(); in FixedTime()
/ide/tools/previewer/test/mock/mock/
H A DMockVirtualScreenImpl.cpp40 bool VirtualScreenImpl::Callback(const void* data, const size_t length, in Callback() argument
/ide/tools/previewer/test/unittest/mock/
H A DVirtualScreenImplTest.cpp428 int length = height * width * pixSize; in TEST_F() local
429 VirtualScreenImpl::GetInstance().bufferSize = length + VirtualScreenImpl::GetInstance().headSize; in TEST_F()
434 bool ret = VirtualScreenImpl::GetInstance().SendPixmap(nullptr, length, width, height); in TEST_F()
439 ret = VirtualScreenImpl::GetInstance().SendPixmap(jpgBuff, length, width, height); in TEST_F()
445 ret = VirtualScreenImpl::GetInstance().SendPixmap(jpgBuff, length, width, height); in TEST_F()
475 int length = height * width * pixSize; in TEST_F() local
476 VirtualScreenImpl::GetInstance().bufferSize = length + VirtualScreenImpl::GetInstance().headSize; in TEST_F()
532 // GetLoadDocFlag is VirtualScreen::LoadDocType::FINISHED && length = 0 in TEST_F()
/ide/tools/previewer/
H A DRichPreviewer.cpp92 SharedData<std::string>(SharedDataType::REGION, lanInfo.substr(lanInfo.find("_") + 1, lanInfo.length() - 1)); in InitSharedData()
/ide/tools/previewer/test/mock/
H A DMockFile.cpp127 std::string relativePath = entry.path().string().substr(folderPath.length() + 1); // Relative path in AddFolderToZip()
/ide/tools/previewer/jsapp/rich/
H A DJsAppImpl.cpp780 SetRegion(args, lanInfo.substr(lanInfo.find("_") + 1, lanInfo.length() - 1)); in ParseSystemParams()

Completed in 9 milliseconds