mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 14:53:52 +00:00
Finish up source export
This commit is contained in:
@@ -195,8 +195,9 @@ bool PortabilityLayer::DeflateContextImpl::Flush()
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
PortabilityLayer::DeflateContext *PortabilityLayer::DeflateContext::Create(GpIOStream *stream, int compressionLevel)
|
||||
{
|
||||
{
|
||||
void *storage = PortabilityLayer::MemoryManager::GetInstance()->Alloc(sizeof(PortabilityLayer::DeflateContextImpl));
|
||||
if (!storage)
|
||||
return nullptr;
|
||||
@@ -210,3 +211,8 @@ PortabilityLayer::DeflateContext *PortabilityLayer::DeflateContext::Create(GpIOS
|
||||
|
||||
return obj;
|
||||
}
|
||||
|
||||
uint32_t PortabilityLayer::DeflateContext::CRC32(uint32_t inputValue, const void *buffer, size_t bufferLength)
|
||||
{
|
||||
return crc32(inputValue, static_cast<const Bytef*>(buffer), bufferLength);
|
||||
}
|
||||
|
@@ -15,6 +15,8 @@ namespace PortabilityLayer
|
||||
virtual bool Append(const void *buffer, size_t size) = 0;
|
||||
|
||||
virtual bool Flush() = 0;
|
||||
|
||||
static uint32_t CRC32(uint32_t inputValue, const void *buffer, size_t bufferLength);
|
||||
};
|
||||
|
||||
class DeflateCodec
|
||||
|
Reference in New Issue
Block a user