MCPcopy Create free account
hub / github.com/MonaSolutions/MonaServer / ToRawId

Method ToRawId

MonaServer/sources/Script.cpp:463–471  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

461}
462
463const UInt8* Script::ToRawId(const UInt8* data, UInt32 size, UInt8 rawID[32]) {
464 if (size == 32)
465 return data;
466 if (size == 64) {
467 Buffer buffer(rawID, 32);
468 return Util::UnformatHex(data, size, buffer).data();
469 }
470 return NULL;
471}
472
473const char* Script::ToPrint(lua_State* pState, string& out) {
474 int top = lua_gettop(pState);

Callers

nothing calls this directly

Calls 1

dataMethod · 0.45

Tested by

no test coverage detected