text: public override byte[] ToByteArray(){if (onDiskFile == null){return base.ToByteArray();}long len = Length();if (int.MaxValue < len){throw new OutOfMemoryException(JGitText.Get().lengthExceedsMaximumArraySize);}byte[] @out = new byte[(int)len];FileInputStream @in = new FileInputStream(onDiskFile);try{IOUtil.ReadFully(@in, @out, 0, (int)len);}finally{@in.Close();}return @out;}