MCPcopy Create free account
hub / github.com/apache/thrift / ReadStringAsync

Method ReadStringAsync

lib/netstd/Thrift/Protocol/TProtocol.cs:189–193  ·  view source on GitHub ↗
(CancellationToken cancellationToken = default)

Source from the content-addressed store, hash-verified

187 public abstract ValueTask<double> ReadDoubleAsync(CancellationToken cancellationToken = default);
188
189 public virtual async ValueTask<string> ReadStringAsync(CancellationToken cancellationToken = default)
190 {
191 var buf = await ReadBinaryAsync(cancellationToken);
192 return Encoding.UTF8.GetString(buf, 0, buf.Length);
193 }
194
195 public abstract ValueTask<byte[]> ReadBinaryAsync(CancellationToken cancellationToken = default);
196

Callers 3

WriteReadString_TestMethod · 0.45
ReadStringMethod · 0.45
ReadAsyncMethod · 0.45

Calls

no outgoing calls

Tested by 1

WriteReadString_TestMethod · 0.36