Write an unsigned integer (4B) to the buffer
| 155 | |
| 156 | // Write an unsigned integer (4B) to the buffer |
| 157 | bool 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 |
nothing calls this directly
no outgoing calls
no test coverage detected