You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BitReader( constvoid * serialize_restrict data, int bytes ) : m_data( (constuint32_t*) data ), m_numBytes( bytes )
627
-
#endif// #ifdef SERIALIZE_DEBUG
628
625
{
629
626
serialize_assert( data );
630
627
m_numBits = m_numBytes * 8;
@@ -788,9 +785,7 @@ namespace serialize
788
785
uint64_t m_scratch; ///< The scratch value. New data is read in 32 bits at a top to the left of this buffer, and data is read off to the right.
789
786
int m_numBits; ///< Number of bits to read in the buffer. Of course, we can't *really* know this so it's actually m_numBytes * 8.
790
787
int m_numBytes; ///< Number of bytes to read in the buffer. We know this, and this is the non-rounded up version.
791
-
#ifdef SERIALIZE_DEBUG
792
-
int m_numWords; ///< Number of words to read in the buffer. This is rounded up to the next word if necessary.
793
-
#endif// #ifdef SERIALIZE_DEBUG
788
+
int m_numWords; ///< Number of words to read in the buffer. This is rounded up to the next word if necessary. Only used in debug builds.
794
789
int m_bitsRead; ///< Number of bits read from the buffer so far.
795
790
int m_scratchBits; ///< Number of bits currently in the scratch value. If the user wants to read more bits than this, we have to go fetch another dword from memory.
796
791
int m_wordIndex; ///< Index of the next word to read from memory.
0 commit comments