예제 #1
0
 public override Task <int> SetBytesAsync(int index, Stream src, int length, CancellationToken cancellationToken)
 {
     this.CheckIndex(index, length);
     fixed(byte *addr = &this.Addr(index))
     {
         return(UnsafeByteBufferUtil.SetBytesAsync(this, addr, index, src, length, cancellationToken));
     }
 }