Reece Wilson
bb9c383aee
[+] IOPipeRequest::uMinBytesToRead [+] (secret api intended for unix users) AuIO::NewLSOSHandleEx [*] Fix quirks when running Gtk under an io processor ...CtxYield shouldn't spin while work (improper breakout on remote update) [*] EFileOpenMode::eWrite should assume O_CREAT semantics making eReadWrite somewhat redundant. OpenWrite + eWrite should reasonably work with file-appends. it should not mean force create + cucked GetLength().
42 lines
1.3 KiB
C++
42 lines
1.3 KiB
C++
/***
|
|
Copyright (C) 2022 J Reece Wilson (a/k/a "Reece"). All rights reserved.
|
|
|
|
File: CompressionInterceptor.hpp
|
|
Date: 2022-9-14
|
|
Author: Reece
|
|
***/
|
|
#pragma once
|
|
|
|
#include <Aurora/IO/Protocol/IProtocolInterceptorEx.hpp>
|
|
|
|
namespace Aurora::Compression
|
|
{
|
|
struct ICompressionInterceptor : IO::Protocol::IProtocolInterceptorEx
|
|
{
|
|
virtual bool HasFailed() = 0;
|
|
|
|
/**
|
|
* @brief
|
|
*/
|
|
virtual void FlushNextFrame() = 0;
|
|
|
|
/**
|
|
* @brief When enabled, each IO tick is considered a logical frame instead of a streaming, meaning that a flush will occur
|
|
* To be used in conjuction with IProtocolStack::AppendSingleFrameProcessorEx
|
|
* @param bAutoFlush
|
|
* @return
|
|
*/
|
|
virtual bool ConfigureAutoFlushPerFrame(bool bAutoFlush) = 0;
|
|
|
|
// TODO (Reece): interface potential
|
|
|
|
virtual bool LimitHasHit() = 0;
|
|
virtual void LimitReset() = 0;
|
|
virtual void LimitSet(AuUInt uLength) = 0;
|
|
virtual bool LimitPassthroughOnOverflow(bool bPassthrough) = 0;
|
|
virtual AuUInt LimitGetIndex() = 0;
|
|
};
|
|
|
|
AUKN_SYM AuSPtr<ICompressionInterceptor> NewDecompressionInterceptor(const DecompressInfo &info);
|
|
AUKN_SYM AuSPtr<ICompressionInterceptor> NewCompressionInterceptor(const CompressInfo &info);
|
|
} |