示例#1
0
 public ValueTask <WrxPacket> ReadAsync(CancellationToken cancellationToken = default)
 {
     return(WrxByteStuffing.ReadPacketAsync(Base, (s, t) => WrxPacket.ReadAsync(s, t), cancellationToken));
 }
示例#2
0
 public ValueTask WriteAsync(WrxPacket packet, CancellationToken cancellationToken = default)
 {
     return(WrxByteStuffing.WritePacketAsync(Base, (s, p, t) => p.WriteAsync(s, t), packet, cancellationToken));
 }