More fixes for bitbuf initialization (missed from previous commit)
This commit is contained in:
parent
ea639455a9
commit
9dcda5054c
16
external/sourcesdk/bitbuf.cpp
vendored
16
external/sourcesdk/bitbuf.cpp
vendored
@ -117,18 +117,20 @@ bf_write::bf_write()
|
|||||||
m_errorHandler = NULL;
|
m_errorHandler = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
bf_write::bf_write( const char *pDebugName, void *pData, int nBytes, int nBits )
|
|
||||||
{
|
|
||||||
m_bAssertOnOverflow = true;
|
|
||||||
m_pDebugName = pDebugName;
|
|
||||||
StartWriting( pData, nBytes, 0, nBits );
|
|
||||||
}
|
|
||||||
|
|
||||||
bf_write::bf_write( void *pData, int nBytes, int nBits )
|
bf_write::bf_write( void *pData, int nBytes, int nBits )
|
||||||
{
|
{
|
||||||
|
StartWriting( pData, nBytes, 0, nBits );
|
||||||
m_bAssertOnOverflow = true;
|
m_bAssertOnOverflow = true;
|
||||||
m_pDebugName = NULL;
|
m_pDebugName = NULL;
|
||||||
|
m_errorHandler = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
bf_write::bf_write( const char *pDebugName, void *pData, int nBytes, int nBits )
|
||||||
|
{
|
||||||
StartWriting( pData, nBytes, 0, nBits );
|
StartWriting( pData, nBytes, 0, nBits );
|
||||||
|
m_bAssertOnOverflow = true;
|
||||||
|
m_pDebugName = pDebugName;
|
||||||
|
m_errorHandler = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
void bf_write::StartWriting( void *pData, int nBytes, int iStartBit, int nBits )
|
void bf_write::StartWriting( void *pData, int nBytes, int iStartBit, int nBits )
|
||||||
|
Loading…
Reference in New Issue
Block a user