From d7099e7adc60190dfef9761130bde0eaf352b48d Mon Sep 17 00:00:00 2001 From: Alan Mishchenko Date: Thu, 5 Feb 2015 19:34:24 -0800 Subject: Adding binary dump to CBA. --- src/misc/vec/vecStr.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/misc') diff --git a/src/misc/vec/vecStr.h b/src/misc/vec/vecStr.h index b8a8433d..3dd6cfac 100644 --- a/src/misc/vec/vecStr.h +++ b/src/misc/vec/vecStr.h @@ -553,6 +553,13 @@ static inline void Vec_StrPush( Vec_Str_t * p, char Entry ) } p->pArray[p->nSize++] = Entry; } +static inline void Vec_StrPushBuffer( Vec_Str_t * p, char * pBuffer, int nSize ) +{ + if ( p->nSize + nSize > p->nCap ) + Vec_StrGrow( p, 2 * (p->nSize + nSize) ); + memcpy( p->pArray + p->nSize, pBuffer, nSize ); + p->nSize += nSize; +} /**Function************************************************************* -- cgit v1.2.3