Couchbase .NET SDK __CB_SDK_VERSION__

Show / Hide Table of Contents

Interface IStreamingTypeDeserializer

Extends ITypeSerializer with methods for deserializing a stream gradually. This allows deserialization to begin before the entire stream is available, and can reduce memory utilization if the result is processed as a stream rather than placed in a list.

Inherited Members
ITypeSerializer.Deserialize<T>(ReadOnlyMemory<byte>)
ITypeSerializer.Deserialize<T>(Stream)
ITypeSerializer.DeserializeAsync<T>(Stream, CancellationToken)
ITypeSerializer.Serialize(Stream, object)
ITypeSerializer.SerializeAsync(Stream, object, CancellationToken)
ITypeSerializer.Serialize<T>(Stream, T)
ITypeSerializer.SerializeAsync<T>(Stream, T, CancellationToken)
Namespace: Couchbase.Core.IO.Serializers
Assembly: Couchbase.NetClient.dll
Syntax
public interface IStreamingTypeDeserializer : ITypeSerializer

Methods

View Source

CreateJsonStreamReader(Stream)

Create an IJsonStreamReader for parsing a Stream.

Declaration
IJsonStreamReader CreateJsonStreamReader(Stream stream)
Parameters
Type Name Description
Stream stream

Stream to parse.

Returns
Type Description
IJsonStreamReader

The new IJsonStreamReader.

Extension Methods

TypeSerializerExtensions.Deserialize<T>(ITypeSerializer, byte[], int, int)
TypeSerializerExtensions.Serialize(ITypeSerializer, object?)
  • View Source
In this article
Back to top Copyright © 2020 Couchbase, Inc. All rights reserved.