summaryrefslogtreecommitdiffstats
path: root/src/common/scratch_buffer.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2022-12-20scratch_buffer: Explicitly defing resize and resize_destructive functionsameerj1-0/+17
resize keeps previous data intact when the buffer grows resize_destructive destroys the previous data when the buffer grows
2022-12-20tests: Add ScratchBuffer testsameerj1-5/+9
2022-12-20common: Add ScratchBuffer classameerj1-0/+74
This class creates a default initialized heap allocated buffer for cases where value initializing members during allocation or resize is redundant.