diff options
Diffstat (limited to 'src/memory.cpp')
| -rw-r--r-- | src/memory.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/memory.cpp b/src/memory.cpp index c5d8375..f2b2ee3 100644 --- a/src/memory.cpp +++ b/src/memory.cpp @@ -48,6 +48,13 @@ int64_t InitNewBucket(int64_t sz, bool transient = false) { return bucketHead++; } +void Pke_ResetBucket(MemBucket *bkt) { + bkt->head = 0; + bkt->lostBytes = 0; + bkt->allocs = 0; + bkt->lastEmptyBlockIndex = -1; +} + void DestroyBucket(MemBucket *bkt) { std::free(bkt->blocks); bkt->size = 0; |
