(svn r19474) -Cleanup: remove ByteBlob::Append(T*, num_items)

This commit is contained in:
yexo 2010-03-19 20:44:23 +00:00
parent aaa8fc7a4c
commit ea58a697c1
1 changed files with 1 additions and 10 deletions

View File

@ -350,6 +350,7 @@ public:
{
return (base::Capacity() / type_size);
}
/** Return number of additional items that can fit in the Blob without buffer reallocation */
FORCEINLINE uint GetReserve() const
{
@ -362,16 +363,6 @@ public:
return (T*)base::Append(num_items * type_size);
}
/** Add given items (ptr + number of items) at the end of blob */
FORCEINLINE T *Append(const T *pSrc, uint num_items)
{
T *pDst = GrowSizeNC(num_items);
T *pDstOrg = pDst;
T *pDstEnd = pDst + num_items;
while (pDst < pDstEnd) new (pDst++) T(*(pSrc++));
return pDstOrg;
}
/** Ensures that given number of items can be added to the end of Blob. Returns pointer to the
* first free (unused) item */
FORCEINLINE T *MakeFreeSpace(uint num_items)