Table of Contents

Class PgBufferedConverter<T>

Namespace
Npgsql.Internal
Assembly
Npgsql.dll
public abstract class PgBufferedConverter<T> : PgConverter<T>

Type Parameters

T
Inheritance
PgBufferedConverter<T>
Inherited Members

Constructors

PgBufferedConverter(bool)

protected PgBufferedConverter(bool customDbNullPredicate = false)

Parameters

customDbNullPredicate bool

Methods

GetSize(SizeContext, T, ref object?)

public override Size GetSize(SizeContext context, T value, ref object? writeState)

Parameters

context SizeContext
value T
writeState object

Returns

Size

Read(PgReader)

public override sealed T Read(PgReader reader)

Parameters

reader PgReader

Returns

T

ReadAsync(PgReader, CancellationToken)

public override sealed ValueTask<T> ReadAsync(PgReader reader, CancellationToken cancellationToken = default)

Parameters

reader PgReader
cancellationToken CancellationToken

Returns

ValueTask<T>

ReadCore(PgReader)

protected abstract T ReadCore(PgReader reader)

Parameters

reader PgReader

Returns

T

Write(PgWriter, T)

public override sealed void Write(PgWriter writer, T value)

Parameters

writer PgWriter
value T

WriteAsync(PgWriter, T, CancellationToken)

public override sealed ValueTask WriteAsync(PgWriter writer, T value, CancellationToken cancellationToken = default)

Parameters

writer PgWriter
value T
cancellationToken CancellationToken

Returns

ValueTask

WriteCore(PgWriter, T)

protected abstract void WriteCore(PgWriter writer, T value)

Parameters

writer PgWriter
value T