/// <summary>Dump message-pack binary to JSON string.</summary> public static string ToJson(byte[] lz4SerializedData) { if (lz4SerializedData == null || 0u >= (uint)lz4SerializedData.Length) { return(""); } return(MessagePackSerializer.ToJson(Decode(lz4SerializedData))); }
/// <summary>Dump message-pack binary to JSON string.</summary> public static string ToJson(ReadOnlySpan <byte> lz4SerializedData) { if (lz4SerializedData.IsEmpty) { return(""); } return(MessagePackSerializer.ToJson(Decode(lz4SerializedData))); }