Files
cefsharp/CefSharp/StreamAdapter.h
T

25 lines
572 B
C++

#include "Stdafx.h"
#pragma once
using namespace System;
using namespace System::IO;
namespace CefSharp
{
class StreamAdapter : public CefReadHandler
{
gcroot<Stream^> _stream;
public:
virtual ~StreamAdapter();
StreamAdapter(Stream^ stream) : _stream(stream) { }
virtual size_t Read(void* ptr, size_t size, size_t n);
virtual int Seek(int64 offset, int whence);
virtual int64 Tell();
virtual int Eof();
IMPLEMENT_LOCKING(StreamAdapter);
IMPLEMENT_REFCOUNTING(StreamAdapter);
};
}