MCPcopy Create free account
hub / github.com/bwapi/bwapi / getSubFrameByLimits

Method getSubFrameByLimits

bwapi/Util/Source/Util/MemoryFrame.cpp:38–45  ·  view source on GitHub ↗

----------------------- SUB FRAME BY LIMITS ------------------------

Source from the content-addressed store, hash-verified

36 }
37 //----------------------- SUB FRAME BY LIMITS ------------------------
38 MemoryFrame MemoryFrame::getSubFrameByLimits(int from, int to)
39 {
40 from = _limit(from, 0, this->frameSize);
41 to = _limit(to, from, this->frameSize);
42 return MemoryFrame(
43 (void*)((int)this->frameBase + from),
44 to - from);
45 }
46 //----------------------- GET FRAME UPTO -----------------------------
47 MemoryFrame MemoryFrame::getFrameUpto(const MemoryFrame &upto)
48 {

Callers

nothing calls this directly

Calls 1

MemoryFrameClass · 0.85

Tested by

no test coverage detected