Skip to content

Commit 54c14e6

Browse files
committed
remove ToArray
1 parent a291b3f commit 54c14e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

QuickFIXn/Message/Message.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1022,6 +1022,6 @@ public string ToJSON(DD? dataDictionary = null, bool convertEnumsToDescriptions
10221022
writer.WriteEndObject();
10231023
writer.Flush();
10241024

1025-
return Encoding.UTF8.GetString(stream.ToArray());
1025+
return Encoding.UTF8.GetString(stream.GetBuffer(), 0, (int)stream.Length);
10261026
}
10271027
}

0 commit comments

Comments
 (0)