Lines Matching refs:cbDataSize
42 * @param cbDataSize The size of the received data.
47 static int vbclClipboardReadHostData(uint32_t u32ClientId, uint32_t fFormat, void **pData, uint32_t *cbDataSize, uint32_t *cbMemSize)
51 AssertReturn(pData && cbDataSize && cbMemSize, VERR_INVALID_PARAMETER);
81 *cbDataSize = cbDataSizeInternal;
104 * @param cbDataSize The size of *pData.
110 static int vbclClipboardGuestPasteData(PasteboardRef pPasteboard, UInt8 *pData, CFIndex cbDataSize, CFStringRef sFormat, bool fClear)
126 if ((textData = CFDataCreate(kCFAllocatorDefault, pData, cbDataSize)))
151 * @param cbDataSize Size of *pData.
153 static int vbclClipboardGuestPasteText(PasteboardRef pPasteboard, void *pData, uint32_t cbDataSize)
163 AssertReturn(cbDataSize > 0, VINF_SUCCESS);
169 rc = vboxClipboardUtf16GetLinSize((RTUTF16 *)pData, cbDataSize / 2, &cbActualLen);
173 rc = vboxClipboardUtf16WinToLin((RTUTF16 *)pData, cbDataSize / 2, pDataInternal, cbActualLen);
203 * @param cbDataSize The size of *pData.
207 static int vbclClipboardGuestPastePicture(PasteboardRef pPasteboard, void *pData, uint32_t cbDataSize)
215 AssertReturn(cbDataSize > 0, VINF_SUCCESS);
217 rc = vboxClipboardDibToBmp(pData, cbDataSize, &pBmp, &cbBmpSize);
239 uint32_t cbDataSize, cbMemSize;
249 rc = vbclClipboardReadHostData(u32ClientId, VBOX_SHARED_CLIPBOARD_FMT_UNICODETEXT, &pData, &cbDataSize, &cbMemSize);
253 rc = vbclClipboardGuestPasteText(pPasteboard, pData, cbDataSize);
266 rc = vbclClipboardReadHostData(u32ClientId, VBOX_SHARED_CLIPBOARD_FMT_BITMAP, &pData, &cbDataSize, &cbMemSize);
270 rc = vbclClipboardGuestPastePicture(pPasteboard, pData, cbDataSize);
283 rc = vbclClipboardReadHostData(u32ClientId, VBOX_SHARED_CLIPBOARD_FMT_HTML, &pData, &cbDataSize, &cbMemSize);
287 rc = vbclClipboardGuestPasteData(pPasteboard, (UInt8 *)pData, cbDataSize, kUTTypeHTML, true);