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

Method getSubFrame

bwapi/Util/Source/Util/MemoryFrame.cpp:29–36  ·  view source on GitHub ↗

----------------------- SUB FRAME BY SIZE --------------------------

Source from the content-addressed store, hash-verified

27 }
28 //----------------------- SUB FRAME BY SIZE --------------------------
29 MemoryFrame MemoryFrame::getSubFrame(int from, int size)
30 {
31 from = _limit(from, 0, this->frameSize);
32 size = _limit(size, 0, this->frameSize-from);
33 return MemoryFrame(
34 (void*)((int)this->frameBase + from),
35 size);
36 }
37 //----------------------- SUB FRAME BY LIMITS ------------------------
38 MemoryFrame MemoryFrame::getSubFrameByLimits(int from, int to)
39 {

Callers 3

getFrameUptoMethod · 0.95
readMethod · 0.95
receivePacketMethod · 0.80

Calls 1

MemoryFrameClass · 0.85

Tested by

no test coverage detected