Index: include/core/SkTDArray.h |
diff --git a/include/core/SkTDArray.h b/include/core/SkTDArray.h |
index 14447217e93416626d06d820d0b2b0d58d441987..fc546ac717faf7b12a2a0aebac57910435846e36 100644 |
--- a/include/core/SkTDArray.h |
+++ b/include/core/SkTDArray.h |
@@ -101,6 +101,11 @@ public: |
int count() const { return fCount; } |
/** |
+ * Return the number of elements there is space for without growing. |
reed1
2014/02/06 20:14:40
// This includes however many elements may already
iancottrell
2014/02/06 21:33:06
Done. Is this better?
reed1
2014/02/06 21:41:34
If I add 3 elements, and call reserve() and it ret
|
+ */ |
+ int reserved() const { return fReserve; } |
+ |
+ /** |
* return the number of bytes in the array: count * sizeof(T) |
*/ |
size_t bytes() const { return fCount * sizeof(T); } |