mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-04 09:37:03 +00:00
20 lines
445 B
C++
20 lines
445 B
C++
#include "stdafx.h"
|
|
#include "DownloadAdapter.h"
|
|
|
|
using namespace System::Runtime::InteropServices;
|
|
|
|
namespace CefSharp
|
|
{
|
|
bool DownloadAdapter::ReceivedData(void* data, int data_size)
|
|
{
|
|
array<Byte>^ bytes = gcnew array<Byte>(data_size);
|
|
Marshal::Copy(IntPtr(data), bytes, 0, data_size);
|
|
|
|
return _handler->ReceivedData(bytes);
|
|
}
|
|
|
|
void DownloadAdapter::Complete()
|
|
{
|
|
_handler->Complete();
|
|
}
|
|
} |