FCohtmlRawResourceHandler

Public Functions

Name
boolTryReadFile(const FString & Url, int64 Start, int64 End, bool bIsRangeRequest, TArray< uint8 > & OutBuffer, int64 & OutFileSize)
voidReadRawResource(const cohtml::IAsyncResourceRequest * Request, cohtml::IAsyncResourceResponse * Response, const FString & ResourcePath)
boolIsRangeRequest(int64 & Start, int64 & End, const cohtml::IAsyncResourceRequest * Request)
voidSetResponseHeadersForCoui(int64 FileSize, int64 ContentSize, int64 Start, bool bIsRangeRequest, cohtml::IAsyncResourceResponse * Response)
voidSetActiveSystem(TWeakPtr< class FCohtmlSystemWrapper, ESPMode::ThreadSafe > SystemPtr)

Public Functions Documentation

function TryReadFile

bool TryReadFile(
    const FString & Url,
    int64 Start,
    int64 End,
    bool bIsRangeRequest,
    TArray< uint8 > & OutBuffer,
    int64 & OutFileSize
)

function ReadRawResource

void ReadRawResource(
    const cohtml::IAsyncResourceRequest * Request,
    cohtml::IAsyncResourceResponse * Response,
    const FString & ResourcePath
)

function IsRangeRequest

bool IsRangeRequest(
    int64 & Start,
    int64 & End,
    const cohtml::IAsyncResourceRequest * Request
)

function SetResponseHeadersForCoui

void SetResponseHeadersForCoui(
    int64 FileSize,
    int64 ContentSize,
    int64 Start,
    bool bIsRangeRequest,
    cohtml::IAsyncResourceResponse * Response
)

function SetActiveSystem

void SetActiveSystem(
    TWeakPtr< class FCohtmlSystemWrapper, ESPMode::ThreadSafe > SystemPtr
)