Skip to content

Commit 020e60a

Browse files
committed
Fixed byte count reported by BitWriter
1 parent 3624ec4 commit 020e60a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

MLAPI/NetworkingManagerComponents/Binary/BitWriter.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,7 @@ private static long GetBitCount<T>(T t)
344344
foreach (var element in t as Array)
345345
count += GetBitCount(element);
346346
}
347+
else if (type == typeof(Partial)) return (byte)Partial.count_info.GetValue(t);
347348
else if (IsSupportedType(type))
348349
{
349350
long ba = t is bool ? 1 : BytesToRead(t)*8;

0 commit comments

Comments
 (0)