Esempio n. 1
0
 public void Add(AByteArray bytes, params Byte[] a)
 {
     bytes.EnsureCapacity(bytes.Length + a.Length);
     for (var i = 0; i < a.Length; i++)
     {
         bytes[bytes.Length - a.Length + i] = a[i];
     }
 }
Esempio n. 2
0
        public void AddString(AByteArray bytes, String s)
        {
            var j = bytes.Length;

            bytes.EnsureCapacity(bytes.Length + s.Length - 2); //not the quotes;
            for (var i = 1; i < s.Length - 1; i++, j++)
            {
                bytes[j] = (Byte)s[i];
            }
        }
Esempio n. 3
0
 public void Add(AByteArray bytes, Byte a)
 {
     bytes.EnsureCapacity(bytes.Length + 1);
     bytes.Last = a;
 }