Class BaseTranscoder
Inheritance
BaseTranscoder
Assembly: Couchbase.NetClient.dll
Syntax
public abstract class BaseTranscoder : object, ITypeTranscoder
Properties
|
Improve this Doc
View Source
Serializer
Declaration
public ITypeSerializer Serializer { get; set; }
Property Value
Methods
|
Improve this Doc
View Source
Decode<T>(ReadOnlyMemory<Byte>, Flags, OpCode)
Declaration
public abstract T Decode<T>(ReadOnlyMemory<byte> buffer, Flags flags, OpCode opcode)
Parameters
Type |
Name |
Description |
ReadOnlyMemory<System.Byte> |
buffer |
|
Flags |
flags |
|
OpCode |
opcode |
|
Returns
Type Parameters
|
Improve this Doc
View Source
DecodeBinary(ReadOnlySpan<Byte>)
Declaration
protected byte[] DecodeBinary(ReadOnlySpan<byte> buffer)
Parameters
Type |
Name |
Description |
ReadOnlySpan<System.Byte> |
buffer |
The buffer.
|
Returns
Type |
Description |
System.Byte[] |
|
|
Improve this Doc
View Source
DecodeChar(ReadOnlySpan<Byte>)
Decodes the specified buffer as char.
Declaration
protected char DecodeChar(ReadOnlySpan<byte> buffer)
Parameters
Type |
Name |
Description |
ReadOnlySpan<System.Byte> |
buffer |
The buffer.
|
Returns
|
Improve this Doc
View Source
DecodeString(ReadOnlySpan<Byte>)
Decodes the specified buffer as string.
Declaration
protected string? DecodeString(ReadOnlySpan<byte> buffer)
Parameters
Type |
Name |
Description |
ReadOnlySpan<System.Byte> |
buffer |
The buffer.
|
Returns
|
Improve this Doc
View Source
DeserializeAsJson<T>(ReadOnlyMemory<Byte>)
Declaration
public virtual T DeserializeAsJson<T>(ReadOnlyMemory<byte> buffer)
Parameters
Type |
Name |
Description |
ReadOnlyMemory<System.Byte> |
buffer |
The buffer.
|
Returns
Type Parameters
|
Improve this Doc
View Source
Encode<T>(Stream, T, Flags, OpCode)
Declaration
public abstract void Encode<T>(Stream stream, T value, Flags flags, OpCode opcode)
Parameters
Type |
Name |
Description |
Stream |
stream |
|
T |
value |
|
Flags |
flags |
|
OpCode |
opcode |
|
Type Parameters
|
Improve this Doc
View Source
Declaration
public abstract Flags GetFormat<T>(T value)
Parameters
Type |
Name |
Description |
T |
value |
|
Returns
Type Parameters
|
Improve this Doc
View Source
SerializeAsJson(Stream, Nullable<Object>)
Declaration
public void SerializeAsJson(Stream stream, object? value)
Parameters
Type |
Name |
Description |
Stream |
stream |
The stream to receive the encoded value.
|
Nullable<Object> |
value |
The value.
|
|
Improve this Doc
View Source
SerializeAsJson<T>(Stream, T)
Declaration
public void SerializeAsJson<T>(Stream stream, T value)
Parameters
Type |
Name |
Description |
Stream |
stream |
The stream to receive the encoded value.
|
T |
value |
The value.
|
Type Parameters
Name |
Description |
T |
Type of value to serialize.
|
|
Improve this Doc
View Source
WriteHelper(Stream, ReadOnlySpan<Byte>)
Declaration
protected void WriteHelper(Stream stream, ReadOnlySpan<byte> buffer)
Parameters
Type |
Name |
Description |
Stream |
stream |
|
ReadOnlySpan<System.Byte> |
buffer |
|
Implements