From ce30c733ddc187472c6040415c3442d10748c133 Mon Sep 17 00:00:00 2001 From: Jonathan Bradley Date: Thu, 21 Dec 2023 15:55:56 -0500 Subject: soft reset array --- src/array.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/array.hpp b/src/array.hpp index db8c564..46eab2e 100644 --- a/src/array.hpp +++ b/src/array.hpp @@ -26,6 +26,10 @@ void PkeArray_HardReset(PkeArray_Base *arrIn) { arr->data = CAFE_BABE(D); } +inline void PkeArray_SoftReset(PkeArray_Base *arrIn) { + arrIn->next = 0; +} + template inline void PkeArray_Add(PkeArray_Base *arrIn, const D &val, MemBucket *bkt = nullptr) { auto *arr = static_cast *>(arrIn); -- cgit v1.2.3