MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / GetCache

Method GetCache

Source/Utils/micropather.cpp:266–271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

264
265
266void PathNodePool::GetCache( int start, int nNodes, NodeCost* nodes ) {
267 MPASSERT( start >= 0 && start < cacheCap );
268 MPASSERT( nNodes > 0 );
269 MPASSERT( start + nNodes <= cacheCap );
270 memcpy( nodes, &cache[start], sizeof(NodeCost)*nNodes );
271}
272
273
274void PathNodePool::Clear()

Callers 1

GetNodeNeighborsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected