MCPcopy Create free account
hub / github.com/URLab-Sim/UnrealRoboticsLab / GetSlot

Method GetSlot

Source/URLab/Private/Transport/ShmRegion.cpp:36–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36uint8* FMjShmRegion::GetSlot(uint32 Idx) const
37{
38 if (!MappedAddr || Idx >= NumBuffers)
39 return nullptr;
40 return static_cast<uint8*>(MappedAddr) + sizeof(FMjShmHeader) + Idx * BufferStride;
41}
42
43bool FMjShmRegion::Open(const FString& Path, uint32 InBufferStride, uint32 InNBuffers)
44{

Callers 3

PublishMethod · 0.80
RunPollLoopMethod · 0.80
PushFrameMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected