Example #1
0
 // Token: 0x0600187F RID: 6271 RVA: 0x000C4560 File Offset: 0x000C2760
 public RtfParserBase(int inputBufferSize, bool testBoundaryConditions, IReportBytes reportBytes)
 {
     this.parseBuffer = new byte[1 + (testBoundaryConditions ? 133 : Math.Min(32767, inputBufferSize))];
     this.reportBytes = reportBytes;
     this.InitializeBase();
 }
Example #2
0
        // Token: 0x06001880 RID: 6272 RVA: 0x000C4598 File Offset: 0x000C2798
        public RtfParserBase(int inputBufferSize, bool testBoundaryConditions, RtfParserBase previewParser, IReportBytes reportBytes)
        {
            int num = 1 + (testBoundaryConditions ? 133 : Math.Min(32767, inputBufferSize));

            if (previewParser.ParseBuffer.Length < num)
            {
                this.parseBuffer = new byte[1 + (testBoundaryConditions ? 133 : Math.Min(32767, inputBufferSize))];
                Buffer.BlockCopy(previewParser.ParseBuffer, 0, this.parseBuffer, 0, previewParser.ParseEnd);
            }
            else
            {
                this.parseBuffer = previewParser.ParseBuffer;
            }
            this.parseEnd         = previewParser.ParseEnd;
            this.endOfFileVisible = previewParser.EndOfFileVisible;
            this.reportBytes      = reportBytes;
            this.InitializeBase();
        }