Class PgBufferedConverter<T>
public abstract class PgBufferedConverter<T> : PgConverter<T>
Type Parameters
T
- Inheritance
-
PgConverter<T>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
SizeContextvalue
TwriteState
object
Returns
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
PgReadercancellationToken
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
PgWritervalue
T
WriteAsync(PgWriter, T, CancellationToken)
public override sealed ValueTask WriteAsync(PgWriter writer, T value, CancellationToken cancellationToken = default)
Parameters
writer
PgWritervalue
TcancellationToken
CancellationToken
Returns
WriteCore(PgWriter, T)
protected abstract void WriteCore(PgWriter writer, T value)
Parameters
writer
PgWritervalue
T