示例#1
0
 public LazyCompressedStringValue(string str, byte *buffer, int uncompressedSize, int compressedSize, JsonOperationContext context)
 {
     String           = str;
     UncompressedSize = uncompressedSize;
     CompressedSize   = compressedSize;
     _context         = context;
     Buffer           = buffer;
 }
 public BlittableJsonTextWriter(JsonOperationContext context, Stream stream) : base(context, stream)
 {
 }
 public AsyncBlittableJsonTextWriter(JsonOperationContext context, Stream stream, CancellationToken cancellationToken) : base(context, context.CheckoutMemoryStream())
 {
     _outputStream      = stream;
     _cancellationToken = cancellationToken;
 }
示例#4
0
 public UnmanagedPointer DecompressToUnmanagedPointer(out AllocatedMemoryData allocatedData, JsonOperationContext externalContext = null)
 {
     allocatedData = DecompressToAllocatedMemoryDataInternal(externalContext, out _);
     return(new UnmanagedPointer(allocatedData.Address));
 }
示例#5
0
 public byte *DecompressToTempBuffer(out AllocatedMemoryData allocatedData, JsonOperationContext externalContext = null)
 {
     allocatedData = DecompressToAllocatedMemoryDataInternal(externalContext, out _);
     return(allocatedData.Address);
 }
示例#6
0
 public AllocatedMemoryData DecompressToAllocatedMemoryData(JsonOperationContext externalContext = null)
 {
     return(DecompressToAllocatedMemoryDataInternal(externalContext, out _));
 }