# Class PgBufferedConverter<T>

Namespace
  Npgsql.Internal

Assembly
  Npgsql.dll

    [Experimental("NPG9001")]
    public abstract class PgBufferedConverter<T> : PgConverter<T>

#### Type Parameters

`T`

Inheritance
  object
  PgConverter
  PgConverter<T>
  PgBufferedConverter<T>

Inherited Members
  PgConverter<T>.IsDbNullValue(T, ref object)
  PgConverter<T>.IsDbNull(T, ref object)
  PgConverter.IsDbNullable
  PgConverter.CanConvert(DataFormat, out BufferRequirements)
  PgConverter.CanConvertBufferedDefault(DataFormat, out BufferRequirements)
  object.Equals(object)
  object.Equals(object, object)
  object.GetHashCode()
  object.GetType()
  object.MemberwiseClone()
  object.ReferenceEquals(object, object)
  object.ToString()

## 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