summaryrefslogtreecommitdiffstats
path: root/src/misc
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2015-02-05 19:34:24 -0800
committerAlan Mishchenko <alanmi@berkeley.edu>2015-02-05 19:34:24 -0800
commitd7099e7adc60190dfef9761130bde0eaf352b48d (patch)
treeeeafc42df15a7ad4822ec5b0d490e72a74ca3e75 /src/misc
parent35ab8cbdad84e8002db20b0b81681a50058a5bed (diff)
downloadabc-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.h7
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*************************************************************