aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-03-22 22:47:55 +0000
committerlloyd <[email protected]>2010-03-22 22:47:55 +0000
commit9056872fd42d52e13b22a4368ee73c8223813efb (patch)
tree3c640fcf5270766d37665801a613ccef73f5e344 /src/alloc
parent572c106e868821da13447ca7349523ef4a90ec2c (diff)
Fix Doxygen comment for grow_to
Diffstat (limited to 'src/alloc')
-rw-r--r--src/alloc/secmem.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/alloc/secmem.h b/src/alloc/secmem.h
index 42b5c7a2d..96d2d32bf 100644
--- a/src/alloc/secmem.h
+++ b/src/alloc/secmem.h
@@ -179,11 +179,13 @@ class MemoryRegion
void resize(u32bit n);
/**
- * Preallocate memory, so that this buffer can grow up to size n without
- * having to perform any actual memory allocations. (This is
- * the same principle as for std::vector::reserve().)
+ * Change the size to n elements. If n is >= size(), preexisting
+ * elements remain unchanged, with later elements
+ * zero-initialized. If n < size(), then the last (size() - N)
+ * elements are removed.
+ * @param n the new size
*/
- void grow_to(u32bit N);
+ void grow_to(u32bit n);
/**
* Swap this buffer with another object.