summaryrefslogtreecommitdiff
path: root/src/common/scratch_buffer.h
AgeCommit message (Collapse)Author
2022-12-19scratch_buffer: Explicitly defing resize and resize_destructive functionsameerj
resize keeps previous data intact when the buffer grows resize_destructive destroys the previous data when the buffer grows
2022-12-19tests: Add ScratchBuffer testsameerj
2022-12-19common: Add ScratchBuffer classameerj
This class creates a default initialized heap allocated buffer for cases where value initializing members during allocation or resize is redundant.