MCPcopy Create free account
hub / github.com/commial/ttd-bindings / QueryMemoryBuffer

Method QueryMemoryBuffer

TTD/TTD.cpp:55–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53 }
54
55 struct MemoryBuffer* Cursor::QueryMemoryBuffer(GuestAddress address, unsigned __int64 size) {
56 struct MemoryBuffer* memorybuffer = (struct MemoryBuffer*)malloc(sizeof(struct MemoryBuffer));
57 struct TBuffer* buf = (struct TBuffer*)malloc(sizeof(struct TBuffer));
58 if (buf == NULL)
59 return NULL;
60 buf->size = size;
61 buf->dst_buffer = (void*)malloc(size);
62 this->cursor->ICursor->QueryMemoryBuffer(cursor, memorybuffer, address, buf, 0);
63 return memorybuffer;
64 }
65
66 struct TTD_Replay_ICursorView_ReplayResult* Cursor::ReplayForward(struct TTD_Replay_ICursorView_ReplayResult* replay_result_out, struct Position* posMax, unsigned __int64 stepCount) {
67 return this->cursor->ICursor->ReplayForward(cursor, replay_result_out, posMax, stepCount);

Callers 4

mainFunction · 0.80
readMemoryFunction · 0.80
dumpContextFunction · 0.80
PYBIND11_MODULEFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected