Esempio n. 1
0
 public void Add(Byte[] bytes, Int32 length)
 {
     buffer.EnsureCapacityCopyAllData((UInt32)(count + length));
     Array.Copy(bytes, 0, buffer.array, count, length);
     count += length;
 }
Esempio n. 2
0
 public void Add(Byte[] data)
 {
     buffer.EnsureCapacityCopyAllData(this.dataOffsetLimit + (UInt32)data.Length);
     ArrayCopier.Copy(data, 0, buffer.array, this.dataOffsetLimit, data.Length);
     this.dataOffsetLimit += (UInt32)data.Length;
 }