mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-12-14 12:09:36 +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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user