Skip to content

Commit d1e811e

Browse files
author
Steve Salas
committed
String length is now UInt16
1 parent 255ea3b commit d1e811e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dotnet-tracer/main/CodePulse.Client/Util/BinaryReaderExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public static string ReadUtfBigEndian(this BinaryReader reader)
9090
throw new ArgumentNullException(nameof(reader), "Expected non-null BinaryReader");
9191
}
9292

93-
var stringBytesLength = reader.ReadInt16BigEndian();
93+
var stringBytesLength = reader.ReadUInt16BigEndian();
9494
var stringBytes = ReadBytesBigEndian(reader, stringBytesLength);
9595

9696
Array.Reverse(stringBytes);

0 commit comments

Comments
 (0)