Esempio n. 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;
 }
Esempio n. 4
0
 public UnmanagedPointer DecompressToUnmanagedPointer(out AllocatedMemoryData allocatedData, JsonOperationContext externalContext = null)
 {
     allocatedData = DecompressToAllocatedMemoryDataInternal(externalContext, out _);
     return(new UnmanagedPointer(allocatedData.Address));
 }
Esempio n. 5
0
 public byte *DecompressToTempBuffer(out AllocatedMemoryData allocatedData, JsonOperationContext externalContext = null)
 {
     allocatedData = DecompressToAllocatedMemoryDataInternal(externalContext, out _);
     return(allocatedData.Address);
 }
Esempio n. 6
0
 public AllocatedMemoryData DecompressToAllocatedMemoryData(JsonOperationContext externalContext = null)
 {
     return(DecompressToAllocatedMemoryDataInternal(externalContext, out _));
 }