ReadBytes() public méthode

Calls BIO_read()
public ReadBytes ( int count ) : ArraySegment
count int
Résultat ArraySegment
 public void Bug3524222()
 {
     byte[] pattern = { 1, 2, 3 };
     byte[] buf = (byte[])pattern.Clone();
     using(BIO bio = new BIO(buf)) {
         buf[1] = 1;
         Assert.AreEqual(pattern, bio.ReadBytes(3).Array);
     }
 }