Skip to content
This repository has been archived by the owner on Apr 28, 2022. It is now read-only.

Commit

Permalink
Use SetLength to reset Position (#217)
Browse files Browse the repository at this point in the history
Signed-off-by: Kraemer, Benjamin <falco20019@hotmail.com>
  • Loading branch information
Falco20019 authored Jun 7, 2021
1 parent b8ebf8b commit 444eb77
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public ThriftSenderBase(ProtocolType protocolType, int maxPacketSize)

public int GetSize(TBase thriftBase)
{
_memoryTransport.Length = 0;
_memoryTransport.SetLength(0);
thriftBase.WriteAsync(ProtocolFactory.GetProtocol(_memoryTransport), CancellationToken.None).GetAwaiter().GetResult();
return _memoryTransport.Length;
}
Expand Down

0 comments on commit 444eb77

Please sign in to comment.