From bf183f93656b1751b051022b222716d61ef8630d Mon Sep 17 00:00:00 2001 From: whh8b <whh8b@git.zephyr-software.com> Date: Wed, 17 Feb 2016 04:14:04 +0000 Subject: [PATCH] Add GetFreeRanges() and second version of SplitFreeRange(). --- include/memory_space.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/memory_space.h b/include/memory_space.h index b572e37..4c65419 100644 --- a/include/memory_space.h +++ b/include/memory_space.h @@ -44,9 +44,11 @@ class MemorySpace_t : public std::map<RangeAddress_t,char> // range operatations virtual void SplitFreeRange(RangeAddress_t addr)=0; + virtual void SplitFreeRange(Range_t range)=0; virtual void MergeFreeRange(RangeAddress_t addr)=0; virtual RangeSet_t::iterator FindFreeRange(RangeAddress_t addr)=0; virtual Range_t GetFreeRange(int size)=0; + virtual std::list<Range_t> GetFreeRanges(size_t size = 0) = 0; virtual std::pair<RangeSet_t::const_iterator,RangeSet_t::const_iterator> GetNearbyFreeRanges(const RangeAddress_t hint, size_t count = 0) = 0; virtual void AddFreeRange(Range_t newRange)=0; -- GitLab