MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / resize

Method resize

pcsx2/x86/BaseblockEx.h:43–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41 BASEBLOCKEX* blocks;
42
43 __fi void resize(s32 size)
44 {
45 pxAssert(size > 0);
46 BASEBLOCKEX* newMem = new BASEBLOCKEX[size];
47 if (blocks)
48 {
49 memcpy(newMem, blocks, _Reserved * sizeof(BASEBLOCKEX));
50 delete[] blocks;
51 }
52 blocks = newMem;
53 pxAssert(blocks != NULL);
54 }
55
56 void reserve(u32 size)
57 {

Callers 15

PrepBlockMethod · 0.45
FreezeMemMethod · 0.45
SaveState_DownloadStateFunction · 0.45
SaveState_ReadScreenshotFunction · 0.45
OpenFileMethod · 0.45
vtlb_Core_AllocFunction · 0.45
FreezeStringMethod · 0.45
ReadStringFunction · 0.45
DoMethod · 0.45
SetGSSWThreadCountMethod · 0.45
DoMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected