コード例 #1
0
 public void WriteString(string str, bool skipEscaping = false)
 {
     using (var lazyStr = _context.GetLazyString(str))
     {
         WriteString(lazyStr, skipEscaping);
     }
 }
コード例 #2
0
 public void WriteString(string str)
 {
     using (var lazyStr = _context.GetLazyString(str))
     {
         WriteString(lazyStr);
     }
 }
コード例 #3
0
ファイル: LazyStringValue.cs プロジェクト: ikvm/ravendb
        public LazyStringValue CloneOnSameContext()
        {
            if (_size == 0)
            {
                return(_context.Empty);
            }

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

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