MCPcopy Create free account
hub / github.com/ImpulseAdventure/JPEGsnoop / BufWriteNum

Method BufWriteNum

DbSigs.cpp:157–170  ·  view source on GitHub ↗

Write an unsigned integer (4B) to the buffer

Source from the content-addressed store, hash-verified

155
156// Write an unsigned integer (4B) to the buffer
157bool CDbSigs::BufWriteNum(PBYTE pBuf,unsigned nIn,unsigned nMaxBytes,unsigned &nOffsetBytes)
158{
159 nMaxBytes; // Unreferenced param
160
161 ASSERT(pBuf);
162 // TODO: check for buffer bounds
163 PBYTE pBufBase;
164 unsigned* pBufInt;
165 pBufBase = &pBuf[nOffsetBytes];
166 pBufInt = (unsigned*)pBufBase;
167 pBufInt[0] = nIn;
168 nOffsetBytes += sizeof(unsigned);
169 return true;
170}
171
172
173// Attempt to read a line from the buffer

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected