mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-04 10:22:55 +00:00
21 lines
473 B
C++
21 lines
473 B
C++
#include "stdafx.h"
|
|
#pragma once
|
|
|
|
using namespace System;
|
|
using namespace System::IO;
|
|
|
|
namespace CefSharp
|
|
{
|
|
class StreamAdapter : public CefThreadSafeBase<CefReadHandler>
|
|
{
|
|
gcroot<Stream^> _stream;
|
|
|
|
public:
|
|
StreamAdapter(Stream^ stream) : _stream(stream) { }
|
|
|
|
virtual size_t Read(void* ptr, size_t size, size_t n);
|
|
virtual int Seek(long offset, int whence);
|
|
virtual long Tell();
|
|
virtual int Eof();
|
|
};
|
|
} |