Example #1
0
            public MultiDocumentParser(JsonOperationContext context, Stream stream)
            {
                _context = context;
                _stream  = stream;
                var state = new JsonParserState();

                _returnManagedBuffer = context.GetManagedBuffer(out _buffer);
                _parser = new UnmanagedJsonParser(context, state, "parse/multi");
                _writer = new BlittableJsonDocumentBuilder(_context, state, _parser);
            }
Example #2
0
 public PeepingTomStream(Stream stream, JsonOperationContext context)
 {
     _stream         = stream;
     _returnedBuffer = context.GetManagedBuffer(out _bufferWindow);
 }