Пример #1
0
 public async Task RangedRandomToDevNull()
 {
     using (Stream cs = new RangedRandomBytesStream(defCount, 0xAD, 0xEF), dns = new DevNullStream())
         await dns.CopyToAsync(cs);
 }
 public async Task RangedRandomToDevNull()
 {
     using (Stream cs = new RangedRandomBytesStream(defCount, 0xAD, 0xEF), dns = new DevNullStream())
         await dns.CopyToAsync(cs);
 }
Пример #3
0
 public async Task ConstantToDevNull()
 {
     using (Stream cs = new ConstantStream(defCount, new byte[] { 0xDE, 0xAD, 0xBE, 0xEF }), dns = new DevNullStream())
         await dns.CopyToAsync(cs);
 }
 public async Task ConstantToDevNull()
 {
     using (Stream cs = new ConstantStream(defCount, new byte[] { 0xDE, 0xAD, 0xBE, 0xEF }), dns = new DevNullStream())
        await dns.CopyToAsync(cs);
 }