aboutsummaryrefslogtreecommitdiff
path: root/zencore/include
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2021-10-01 22:13:06 +0200
committerStefan Boberg <[email protected]>2021-10-01 22:13:06 +0200
commite783450cabd5ce23c40b85d4095592ed4a26677d (patch)
treeaf74e5af1799e8b5e65dba5ab0955bd8f02ac4ab /zencore/include
parentstructured cache: fixed how HEAD requests are handled (diff)
downloadzen-e783450cabd5ce23c40b85d4095592ed4a26677d.tar.xz
zen-e783450cabd5ce23c40b85d4095592ed4a26677d.zip
Added explicit mimalloc IoBuffer allocation path
Diffstat (limited to 'zencore/include')
-rw-r--r--zencore/include/zencore/iobuffer.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/zencore/include/zencore/iobuffer.h b/zencore/include/zencore/iobuffer.h
index 36ecbd9a7..ed52184d2 100644
--- a/zencore/include/zencore/iobuffer.h
+++ b/zencore/include/zencore/iobuffer.h
@@ -218,6 +218,7 @@ protected:
kIsMaterialized = 1 << 3, // Data pointers are valid
kLowLevelAlloc = 1 << 4, // Using direct memory allocation
kIsWholeFile = 1 << 5, // References an entire file
+ kIoBufferAlloc = 1 << 6, // Using IoBuffer allocator
kIsOwnedByThis = 1 << 7,
// Note that we have some extended flags defined below
@@ -229,7 +230,7 @@ protected:
kContentTypeBit3 = 1 << (24 + 3), // bits are reserved
};
- void* AllocateBuffer(size_t InSize, size_t Alignment);
+ void AllocateBuffer(size_t InSize, size_t Alignment);
void FreeBuffer();
};