MCPcopy Create free account
hub / github.com/diasurgical/devilution / DeltaImportItem

Function DeltaImportItem

Source/msg.cpp:1211–1227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1209}
1210
1211BYTE *DeltaImportItem(BYTE *src, TCmdPItem *dst)
1212{
1213 int i;
1214
1215 for (i = 0; i < MAXITEMS; i++) {
1216 if (*src == 0xFF) {
1217 memset(dst, 0xFF, sizeof(TCmdPItem));
1218 src++;
1219 } else {
1220 memcpy(dst, src, sizeof(TCmdPItem));
1221 src += sizeof(TCmdPItem);
1222 }
1223 dst++;
1224 }
1225
1226 return src;
1227}
1228
1229BYTE *DeltaImportObject(BYTE *src, DObjectStr *dst)
1230{

Callers 1

DeltaImportDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected