public void WriteString(string str, bool skipEscaping = false)
 {
     using (var lazyStr = _context.GetLazyString(str))
     {
         WriteString(lazyStr, skipEscaping);
     }
 }
 public void WriteString(string str)
 {
     using (var lazyStr = _context.GetLazyString(str))
     {
         WriteString(lazyStr);
     }
 }
Beispiel #3
0
        public LazyStringValue CloneOnSameContext()
        {
            if (_size == 0)
            {
                return(_context.Empty);
            }

            return(_context.GetLazyString(_buffer, _size, longLived: false));
        }
Beispiel #4
0
        public LazyStringValue Clone(JsonOperationContext context)
        {
            if (_size == 0)
            {
                return(context.Empty);
            }

            return(context.GetLazyString(_buffer, _size, longLived: false));
        }
Beispiel #5
0
 public LazyStringValue Clone(JsonOperationContext context)
 {
     return(context.GetLazyString(_buffer, _size));
 }