diff options
Diffstat (limited to 'compiler/dex/growable_array.h')
-rw-r--r-- | compiler/dex/growable_array.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/compiler/dex/growable_array.h b/compiler/dex/growable_array.h index 8e2abfbaf1..9053285af0 100644 --- a/compiler/dex/growable_array.h +++ b/compiler/dex/growable_array.h @@ -150,6 +150,11 @@ class GrowableArray { size_t Size() const { return num_used_; } + void SetSize(size_t new_size) { + Resize(new_size); + num_used_ = new_size; + } + T* GetRawStorage() const { return elem_list_; } static void* operator new(size_t size, ArenaAllocator* arena) { |