Couchbase .NET SDK __CB_SDK_VERSION__

Show / Hide Table of Contents

Class RawStringTranscoder

Inheritance
object
BaseTranscoder
RawStringTranscoder
Implements
ITypeTranscoder
Inherited Members
BaseTranscoder.DeserializeAsJson<T>(ReadOnlyMemory<byte>)
BaseTranscoder.SerializeAsJson(Stream, object)
BaseTranscoder.SerializeAsJson<T>(Stream, T)
BaseTranscoder.DecodeString(ReadOnlySpan<byte>)
BaseTranscoder.DecodeChar(ReadOnlySpan<byte>)
BaseTranscoder.DecodeBinary(ReadOnlySpan<byte>)
BaseTranscoder.WriteHelper(Stream, ReadOnlySpan<byte>)
BaseTranscoder.Serializer
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Couchbase.Core.IO.Transcoders
Assembly: Couchbase.NetClient.dll
Syntax
public class RawStringTranscoder : BaseTranscoder, ITypeTranscoder

Constructors

View Source

RawStringTranscoder()

Declaration
[RequiresUnreferencedCode("The DefaultSerializer uses Newtonsoft.Json which requires unreferenced code and is incompatible with trimming.")]
[RequiresDynamicCode("The DefaultSerializer uses Newtonsoft.Json which requires dynamic code and is incompatible with AOT.")]
public RawStringTranscoder()
View Source

RawStringTranscoder(ITypeSerializer)

Declaration
public RawStringTranscoder(ITypeSerializer serializer)
Parameters
Type Name Description
ITypeSerializer serializer

Methods

View Source

Decode<T>(ReadOnlyMemory<byte>, Flags, OpCode)

Decodes the specified buffer.

Declaration
public override T Decode<T>(ReadOnlyMemory<byte> buffer, Flags flags, OpCode opcode)
Parameters
Type Name Description
ReadOnlyMemory<byte> buffer

The buffer representing the value of the key to decode.

Flags flags

The flags used to encode the payload.

OpCode opcode
Returns
Type Description
T
Type Parameters
Name Description
T
Overrides
BaseTranscoder.Decode<T>(ReadOnlyMemory<byte>, Flags, OpCode)
View Source

Encode<T>(Stream, T, Flags, OpCode)

Encodes the specified value.

Declaration
public override void Encode<T>(Stream stream, T value, Flags flags, OpCode opcode)
Parameters
Type Name Description
Stream stream

The stream to receive the encoded value.

T value

The value of the key to encode.

Flags flags

The flags used for decoding the response.

OpCode opcode
Type Parameters
Name Description
T
Overrides
BaseTranscoder.Encode<T>(Stream, T, Flags, OpCode)
View Source

GetFormat<T>(T)

Get data formatting based on the generic type and/or the actual value.

Declaration
public override Flags GetFormat<T>(T value)
Parameters
Type Name Description
T value

Value to be formatted.

Returns
Type Description
Flags

Flags used to format value written to operation payload.

Type Parameters
Name Description
T
Overrides
BaseTranscoder.GetFormat<T>(T)

Implements

ITypeTranscoder
  • View Source
In this article
Back to top Copyright © 2020 Couchbase, Inc. All rights reserved.