MCPcopy Create free account
hub / github.com/Aegel5/SimpleSwitcher / AddToEnd

Method AddToEnd

src/libtools/utils/ScanMap.h:266–279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

264 size -= sizeof(DWORD);
265 }
266 TStatus AddToEnd(DWORD dw)
267 {
268 if (size >= c_size)
269 {
270 IFS_RET(SW_ERR_BUFFER_TOO_SMALL);
271 }
272 size_t len = size / sizeof(DWORD);
273 DWORDI(len - 1) = dw;
274 DWORDI(len) = 0;
275 size += sizeof(DWORD);
276 SizeInTable() += 1;
277
278 RETURN_SUCCESS;
279 }
280};
281

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected