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

Method PackJsonObject

Source/URLab/Private/Bridge/MsgpackHelpers.cpp:153–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151} // namespace
152
153void FURLabMsgpackUtil::PackJsonObject(const TSharedPtr<FJsonObject>& Object, TArray<uint8>& OutBuf)
154{
155 OutBuf.Reset();
156 clmdep_msgpack::sbuffer SBuf;
157 clmdep_msgpack::packer<clmdep_msgpack::sbuffer> Packer(SBuf);
158 PackJsonObjectInner(Packer, Object);
159 OutBuf.Append(reinterpret_cast<const uint8*>(SBuf.data()), (int32)SBuf.size());
160}
161
162void FURLabMsgpackUtil::SetBinaryField(TSharedPtr<FJsonObject>& Obj, const FString& Field,
163 const uint8* Data, int32 Size)

Callers

nothing calls this directly

Calls 2

PackJsonObjectInnerFunction · 0.85
ResetMethod · 0.45

Tested by

no test coverage detected