Esempio n. 1
0
 public static void ClearBuffer(Buffer buffer)
 {
     if (buffer == null)
     {
         throw new ArgumentNullException("buffer");
     }
     buffer.ClearBuffer();
 }
Esempio n. 2
0
 public static byte[] GetBufferRef(Buffer buffer)
 {
     if (buffer == null)
     {
         throw new ArgumentNullException("buffer");
     }
     buffer.ClearBuffer();
     return(buffer.GetBuffer());
 }
Esempio n. 3
0
 public static void Add(Buffer buffer, Buffer bufferToWrite)
 {
     if (buffer == null || bufferToWrite == null)
     {
         throw new ArgumentNullException("buffer");
     }
     buffer.ClearBuffer();
     buffer = New();
     buffer.Add(bufferToWrite.bytes);
 }