コード例 #1
0
 public UnmanagedJsonParser(JsonOperationContext ctx, JsonParserState state, string debugTag)
 {
     _ctx                  = ctx;
     _state                = state;
     _debugTag             = debugTag;
     _unmanagedWriteBuffer = new UnmanagedWriteBuffer(ctx, ctx.GetMemory(1024 * 16));
 }
コード例 #2
0
 public UnmanagedJsonParser(JsonOperationContext ctx, JsonParserState state, string debugTag)
 {
     _ctx                  = ctx;
     _state                = state;
     _debugTag             = debugTag;
     _unmanagedWriteBuffer = ctx.GetStream(JsonOperationContext.InitialStreamSize);
 }
コード例 #3
0
 public UnmanagedJsonParser(JsonOperationContext ctx, JsonParserState state, string debugTag)
 {
     _ctx          = ctx;
     _state        = state;
     _debugTag     = debugTag;
     _stringBuffer = ctx.GetStream();
 }
コード例 #4
0
        public void NewDocument()
        {
            _maybeBeforePreamble = true;
            var previous = _unmanagedWriteBuffer.SizeInBytes;

            _unmanagedWriteBuffer.Dispose();
            _unmanagedWriteBuffer = _ctx.GetStream(previous);
        }
コード例 #5
0
 public void NewDocument()
 {
     _maybeBeforePreamble = true;
     _unmanagedWriteBuffer.Dispose();
     _unmanagedWriteBuffer = _ctx.GetStream();
 }
コード例 #6
0
 public void SetStream()
 {
     _stringBuffer = _ctx.GetStream();
 }
コード例 #7
0
 public void NewDocument()
 {
     _maybeBeforePreamble = true;
     _stringBuffer.Dispose();
     _stringBuffer = _ctx.GetStream();
 }