Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
IMemoryReadStream Class Referenceabstract

#include <MemoryReadStream.h>

+ Collaboration diagram for IMemoryReadStream:

Public Member Functions

virtual const voidRead (int64 &OutSize, int64 InOffset, int64 InSize)=0
 
virtual int64 GetSize ()=0
 
virtual void CopyTo (void *Buffer, int64 InOffset, int64 InSize)
 
virtual void EnsureReadNonBlocking ()
 
FORCEINLINE uint32 AddRef () const
 
FORCEINLINE uint32 Release () const
 
FORCEINLINE uint32 GetRefCount () const
 

Static Public Member Functions

static TRefCountPtr< IMemoryReadStreamCreateFromCopy (const void *InMemory, int64 InSize)
 
static TRefCountPtr< IMemoryReadStreamCreateFromCopy (IMemoryReadStream *InStream)
 
static TRefCountPtr< IMemoryReadStreamCreateFromBuffer (void *InMemory, int64 InSize, bool bOwnPointer)
 

Protected Member Functions

virtual ~IMemoryReadStream ()
 

Private Attributes

FThreadSafeCounter NumRefs
 

Detailed Description

Represents a block of memory, but abstracts away the underlying layout

Definition at line 13 of file MemoryReadStream.h.

Constructor & Destructor Documentation

◆ ~IMemoryReadStream()

virtual IMemoryReadStream::~IMemoryReadStream ( )
inlineprotectedvirtual

Definition at line 43 of file MemoryReadStream.h.

Member Function Documentation

◆ AddRef()

FORCEINLINE uint32 IMemoryReadStream::AddRef ( ) const
inline

Definition at line 25 of file MemoryReadStream.h.

+ Here is the call graph for this function:

◆ CopyTo()

virtual void IMemoryReadStream::CopyTo ( void * Buffer,
int64 InOffset,
int64 InSize )
virtual

◆ CreateFromBuffer()

static TRefCountPtr< IMemoryReadStream > IMemoryReadStream::CreateFromBuffer ( void * InMemory,
int64 InSize,
bool bOwnPointer )
static

◆ CreateFromCopy() [1/2]

static TRefCountPtr< IMemoryReadStream > IMemoryReadStream::CreateFromCopy ( const void * InMemory,
int64 InSize )
static

◆ CreateFromCopy() [2/2]

static TRefCountPtr< IMemoryReadStream > IMemoryReadStream::CreateFromCopy ( IMemoryReadStream * InStream)
static

◆ EnsureReadNonBlocking()

virtual void IMemoryReadStream::EnsureReadNonBlocking ( )
inlinevirtual

Definition at line 23 of file MemoryReadStream.h.

◆ GetRefCount()

FORCEINLINE uint32 IMemoryReadStream::GetRefCount ( ) const
inline

Definition at line 37 of file MemoryReadStream.h.

+ Here is the call graph for this function:

◆ GetSize()

virtual int64 IMemoryReadStream::GetSize ( )
pure virtual

◆ Read()

virtual const void * IMemoryReadStream::Read ( int64 & OutSize,
int64 InOffset,
int64 InSize )
pure virtual

◆ Release()

FORCEINLINE uint32 IMemoryReadStream::Release ( ) const
inline

Definition at line 27 of file MemoryReadStream.h.

+ Here is the call graph for this function:

Member Data Documentation

◆ NumRefs

FThreadSafeCounter IMemoryReadStream::NumRefs
mutableprivate

Definition at line 46 of file MemoryReadStream.h.


The documentation for this class was generated from the following file: