6#include "HAL/Platform.h"
7#include "HAL/ThreadSafeCounter.h"
8#include "Templates/RefCounting.h"
11
12
20 virtual const void*
Read(int64& OutSize, int64 InOffset, int64 InSize) = 0;
22 virtual void CopyTo(
void* Buffer, int64 InOffset, int64 InSize);
TRefCountPtr< IMemoryReadStream > IMemoryReadStreamRef
FORCEINLINE uint32 GetRefCount() const
static TRefCountPtr< IMemoryReadStream > CreateFromBuffer(void *InMemory, int64 InSize, bool bOwnPointer)
virtual void EnsureReadNonBlocking()
static TRefCountPtr< IMemoryReadStream > CreateFromCopy(const void *InMemory, int64 InSize)
static TRefCountPtr< IMemoryReadStream > CreateFromCopy(IMemoryReadStream *InStream)
virtual ~IMemoryReadStream()
FORCEINLINE uint32 AddRef() const
virtual int64 GetSize()=0
FORCEINLINE uint32 Release() const
virtual void CopyTo(void *Buffer, int64 InOffset, int64 InSize)
FThreadSafeCounter NumRefs
virtual const void * Read(int64 &OutSize, int64 InOffset, int64 InSize)=0