public byte[] ReadBuffer(int size) { byte[] buffer = new byte [size]; Array.Copy (blob.Contents, pos, buffer, 0, size); pos += size; return buffer; }