Don't stringify ResourceIds in structured data

* Users should stringify the actual value themselves if so desired. This reduces
  the number of string allocations in the structured data since ResourceIds are
  common.
This commit is contained in:
baldurk
2020-10-26 16:21:18 +00:00
parent 935cb113ed
commit c468dafedc
+5 -1
View File
@@ -133,7 +133,11 @@ rdcstr DoStringise(const PointerVal &el)
}
}
BASIC_TYPE_SERIALISE_STRINGIFY(ResourceId, (uint64_t &)el, SDBasic::Resource, 8);
template <class SerialiserType>
void DoSerialise(SerialiserType &ser, ResourceId &el)
{
ser.SerialiseValue(SDBasic::Resource, 8, (uint64_t &)el);
}
INSTANTIATE_SERIALISE_TYPE(ResourceId);