text: public virtual byte[] ToByteArray(){long len = Length();if (int.MaxValue < len){throw new OutOfMemoryException(JGitText.Get().lengthExceedsMaximumArraySize);}byte[] @out = new byte[(int)len];int outPtr = 0;foreach (TemporaryBuffer.Block b in blocks){System.Array.Copy(b.buffer, 0, @out, outPtr, b.count);outPtr += b.count;}return @out;}