diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2015-02-05 19:34:24 -0800 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2015-02-05 19:34:24 -0800 |
commit | d7099e7adc60190dfef9761130bde0eaf352b48d (patch) | |
tree | eeafc42df15a7ad4822ec5b0d490e72a74ca3e75 /src/misc | |
parent | 35ab8cbdad84e8002db20b0b81681a50058a5bed (diff) | |
download | abc-d7099e7adc60190dfef9761130bde0eaf352b48d.tar.gz abc-d7099e7adc60190dfef9761130bde0eaf352b48d.tar.bz2 abc-d7099e7adc60190dfef9761130bde0eaf352b48d.zip |
Adding binary dump to CBA.
Diffstat (limited to 'src/misc')
-rw-r--r-- | src/misc/vec/vecStr.h | 7 |
1 files changed, 7 insertions, 0 deletions
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************************************************************* |