| 767 | } |
| 768 | |
| 769 | void WriteStream::WriteJson(ISerializable* obj, const void* otherObj) |
| 770 | { |
| 771 | WriteInt32(FLAXENGINE_VERSION_BUILD); |
| 772 | if (obj) |
| 773 | { |
| 774 | rapidjson_flax::StringBuffer buffer; |
| 775 | CompactJsonWriter writer(buffer); |
| 776 | writer.StartObject(); |
| 777 | obj->Serialize(writer, otherObj); |
| 778 | writer.EndObject(); |
| 779 | |
| 780 | WriteInt32((int32)buffer.GetSize()); |
| 781 | WriteBytes((byte*)buffer.GetString(), (int32)buffer.GetSize()); |
| 782 | } |
| 783 | else |
| 784 | WriteInt32(0); |
| 785 | } |
| 786 | |
| 787 | void WriteStream::WriteJson(const StringAnsiView& json) |
| 788 | { |
nothing calls this directly
no test coverage detected