Add() public méthode

Add a sequence of values to the end of the stream. Returns the first insertion position. Empty arrays will return the insertion position anyway of a non empty array.
public Add ( IEnumerable array ) : int
array IEnumerable
Résultat int
Exemple #1
0
 public void Encode(long d, OctetStream Output)
 {
     long m;
     while (true) {
         m = d & 127;
         d >>= 7;
         if (d == 0) {
             Output.Add ((byte)(m | 128));
             break;
         } else {
             Output.Add ((byte) m);
         }
     }
 }