Search Results for

    Show / Hide Table of Contents

    Class PgWriter

    Inheritance
    object
    PgWriter
    Namespace: Npgsql.Internal
    Assembly: Npgsql.dll
    Syntax
    public sealed class PgWriter

    Properties

    | Improve this Doc View Source

    Current

    Declaration
    public ValueMetadata Current { get; }
    Property Value
    Type Description
    ValueMetadata

    Methods

    | Improve this Doc View Source

    BeginNestedWrite(Size, int, object?)

    Declaration
    public NestedWriteScope BeginNestedWrite(Size bufferRequirement, int byteCount, object? state)
    Parameters
    Type Name Description
    Size bufferRequirement
    int byteCount
    object? state
    Returns
    Type Description
    NestedWriteScope
    | Improve this Doc View Source

    BeginNestedWriteAsync(Size, int, object?, CancellationToken)

    Declaration
    public ValueTask<NestedWriteScope> BeginNestedWriteAsync(Size bufferRequirement, int byteCount, object? state, CancellationToken cancellationToken = null)
    Parameters
    Type Name Description
    Size bufferRequirement
    int byteCount
    object? state
    CancellationToken cancellationToken
    Returns
    Type Description
    ValueTask<><NestedWriteScope>
    | Improve this Doc View Source

    Flush(TimeSpan)

    Declaration
    public void Flush(TimeSpan timeout = null)
    Parameters
    Type Name Description
    TimeSpan timeout
    | Improve this Doc View Source

    FlushAsync(CancellationToken)

    Declaration
    public ValueTask FlushAsync(CancellationToken cancellationToken = null)
    Parameters
    Type Name Description
    CancellationToken cancellationToken
    Returns
    Type Description
    ValueTask
    | Improve this Doc View Source

    GetStream()

    Declaration
    public Stream GetStream()
    Returns
    Type Description
    Stream
    | Improve this Doc View Source

    ShouldFlush(Size)

    Declaration
    public bool ShouldFlush(Size bufferRequirement)
    Parameters
    Type Name Description
    Size bufferRequirement
    Returns
    Type Description
    bool
    | Improve this Doc View Source

    ShouldFlush(int)

    Declaration
    public bool ShouldFlush(int byteCount)
    Parameters
    Type Name Description
    int byteCount
    Returns
    Type Description
    bool
    | Improve this Doc View Source

    WriteAsOid(PgTypeId)

    Declaration
    public void WriteAsOid(PgTypeId pgTypeId)
    Parameters
    Type Name Description
    PgTypeId pgTypeId
    | Improve this Doc View Source

    WriteByte(byte)

    Declaration
    public void WriteByte(byte value)
    Parameters
    Type Name Description
    byte value
    | Improve this Doc View Source

    WriteBytes(ReadOnlySpan<byte>)

    Declaration
    public void WriteBytes(ReadOnlySpan<byte> buffer)
    Parameters
    Type Name Description
    ReadOnlySpan<><byte> buffer
    | Improve this Doc View Source

    WriteBytesAsync(ReadOnlyMemory<byte>, CancellationToken)

    Declaration
    public ValueTask WriteBytesAsync(ReadOnlyMemory<byte> buffer, CancellationToken cancellationToken = null)
    Parameters
    Type Name Description
    ReadOnlyMemory<><byte> buffer
    CancellationToken cancellationToken
    Returns
    Type Description
    ValueTask
    | Improve this Doc View Source

    WriteChars(ReadOnlySpan<char>, Encoding)

    Declaration
    public void WriteChars(ReadOnlySpan<char> data, Encoding encoding)
    Parameters
    Type Name Description
    ReadOnlySpan<><char> data
    Encoding encoding
    | Improve this Doc View Source

    WriteCharsAsync(ReadOnlyMemory<char>, Encoding, CancellationToken)

    Declaration
    public ValueTask WriteCharsAsync(ReadOnlyMemory<char> data, Encoding encoding, CancellationToken cancellationToken = null)
    Parameters
    Type Name Description
    ReadOnlyMemory<><char> data
    Encoding encoding
    CancellationToken cancellationToken
    Returns
    Type Description
    ValueTask
    | Improve this Doc View Source

    WriteDouble(double)

    Declaration
    public void WriteDouble(double value)
    Parameters
    Type Name Description
    double value
    | Improve this Doc View Source

    WriteFloat(float)

    Declaration
    public void WriteFloat(float value)
    Parameters
    Type Name Description
    float value
    | Improve this Doc View Source

    WriteInt16(short)

    Declaration
    public void WriteInt16(short value)
    Parameters
    Type Name Description
    short value
    | Improve this Doc View Source

    WriteInt32(int)

    Declaration
    public void WriteInt32(int value)
    Parameters
    Type Name Description
    int value
    | Improve this Doc View Source

    WriteInt64(long)

    Declaration
    public void WriteInt64(long value)
    Parameters
    Type Name Description
    long value
    | Improve this Doc View Source

    WriteUInt16(ushort)

    Declaration
    public void WriteUInt16(ushort value)
    Parameters
    Type Name Description
    ushort value
    | Improve this Doc View Source

    WriteUInt32(uint)

    Declaration
    public void WriteUInt32(uint value)
    Parameters
    Type Name Description
    uint value
    | Improve this Doc View Source

    WriteUInt64(ulong)

    Declaration
    public void WriteUInt64(ulong value)
    Parameters
    Type Name Description
    ulong value
    • Improve this Doc
    • View Source
    In This Article
    Back to top © Copyright 2023 The Npgsql Development Team