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