This commit is contained in:
vis2k 2022-02-16 16:36:26 +08:00
parent f042933334
commit b64a170b24

View File

@ -175,10 +175,8 @@ public ArraySegment<byte> ReadBytesSegment(int count)
} }
[MethodImpl(MethodImplOptions.AggressiveInlining)] [MethodImpl(MethodImplOptions.AggressiveInlining)]
public override string ToString() public override string ToString() =>
{ $"NetworkReader pos={Position} len={Length} buffer={BitConverter.ToString(buffer.Array, buffer.Offset, buffer.Count)}";
return $"NetworkReader pos={Position} len={Length} buffer={BitConverter.ToString(buffer.Array, buffer.Offset, buffer.Count)}";
}
/// <summary>Reads any data type that mirror supports. Uses weaver populated Reader(T).read</summary> /// <summary>Reads any data type that mirror supports. Uses weaver populated Reader(T).read</summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)] [MethodImpl(MethodImplOptions.AggressiveInlining)]