Search Results for

    Show / Hide Table of Contents

    Class BitStringArrayHandler

    A special handler for arrays of bit strings. Differs from the standard array handlers in that it returns arrays of bool for BIT(1) and arrays of BitArray otherwise (just like the scalar BitStringHandler does).

    Inheritance
    Object
    NpgsqlTypeHandler
    ArrayHandler
    ArrayHandler<BitArray>
    BitStringArrayHandler
    Inherited Members
    ArrayHandler<BitArray>.ValidateAndGetLengthCustom<TAny>(TAny, NpgsqlLengthCache, NpgsqlParameter)
    ArrayHandler<BitArray>.ValidateObjectAndGetLength(Object, NpgsqlLengthCache, NpgsqlParameter)
    ArrayHandler<BitArray>.WriteWithLengthCustom<TAny>(TAny, NpgsqlWriteBuffer, NpgsqlLengthCache, NpgsqlParameter, Boolean, CancellationToken)
    ArrayHandler<BitArray>.WriteObjectWithLength(Object, NpgsqlWriteBuffer, NpgsqlLengthCache, NpgsqlParameter, Boolean, CancellationToken)
    ArrayHandler.GetFieldType(FieldDescription)
    ArrayHandler.GetProviderSpecificFieldType(FieldDescription)
    ArrayHandler.CreateArrayHandler(PostgresArrayType, ArrayNullabilityMode)
    ArrayHandler.CreateRangeHandler(PostgresType)
    ArrayHandler.CreateMultirangeHandler(PostgresMultirangeType)
    ArrayHandler.ReadArray<TRequestedElement>(NpgsqlReadBuffer, Boolean, Int32, Boolean)
    ArrayHandler.ReadList<TRequestedElement>(NpgsqlReadBuffer, Boolean)
    NpgsqlTypeHandler.PostgresType
    NpgsqlTypeHandler.Read<TAny>(NpgsqlReadBuffer, Int32, Boolean, FieldDescription)
    NpgsqlTypeHandler.Read<TAny>(NpgsqlReadBuffer, Int32, FieldDescription)
    NpgsqlTypeHandler.ValidateAndGetLength<TAny>(TAny, NpgsqlLengthCache, NpgsqlParameter)
    NpgsqlTypeHandler.WriteWithLength<TAny>(TAny, NpgsqlWriteBuffer, NpgsqlLengthCache, NpgsqlParameter, Boolean, CancellationToken)
    NpgsqlTypeHandler.CreateConversionButNoParamException(Type)
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: Npgsql.Internal.TypeHandlers
    Assembly: Npgsql.dll
    Syntax
    public class BitStringArrayHandler : ArrayHandler<BitArray>
    Remarks

    The type handler API allows customizing Npgsql's behavior in powerful ways. However, although it is public, it should be considered somewhat unstable, and may change in breaking ways, including in non-major releases. Use it at your own risk.

    Constructors

    BitStringArrayHandler(PostgresType, BitStringHandler, ArrayNullabilityMode)

    Declaration
    public BitStringArrayHandler(PostgresType postgresType, BitStringHandler elementHandler, ArrayNullabilityMode arrayNullabilityMode)
    Parameters
    Type Name Description
    PostgresType postgresType
    BitStringHandler elementHandler
    ArrayNullabilityMode arrayNullabilityMode

    Methods

    ReadAsObject(NpgsqlReadBuffer, Int32, Boolean, FieldDescription)

    Declaration
    public override async ValueTask<object> ReadAsObject(NpgsqlReadBuffer buf, int len, bool async, FieldDescription fieldDescription = null)
    Parameters
    Type Name Description
    NpgsqlReadBuffer buf
    Int32 len
    Boolean async
    FieldDescription fieldDescription
    Returns
    Type Description
    ValueTask<Object>
    Overrides
    Npgsql.Internal.TypeHandlers.ArrayHandler<System.Collections.BitArray>.ReadAsObject(Npgsql.Internal.NpgsqlReadBuffer, System.Int32, System.Boolean, Npgsql.BackendMessages.FieldDescription)

    ReadCustom<TRequestedArray>(NpgsqlReadBuffer, Int32, Boolean, FieldDescription)

    Declaration
    protected override async ValueTask<TRequestedArray> ReadCustom<TRequestedArray>(NpgsqlReadBuffer buf, int len, bool async, FieldDescription fieldDescription = null)
    Parameters
    Type Name Description
    NpgsqlReadBuffer buf
    Int32 len
    Boolean async
    FieldDescription fieldDescription
    Returns
    Type Description
    ValueTask<TRequestedArray>
    Type Parameters
    Name Description
    TRequestedArray
    Overrides
    ArrayHandler.ReadCustom<TRequestedArray>(NpgsqlReadBuffer, Int32, Boolean, FieldDescription)
    In This Article
    Back to top © Copyright 2022 The Npgsql Development Team