Search Results for

    Show / Hide Table of Contents

    Class PgReader

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

    Properties

    | Improve this Doc View Source

    Current

    Declaration
    public ValueMetadata Current { get; }
    Property Value
    Type Description
    ValueMetadata
    | Improve this Doc View Source

    CurrentRemaining

    Declaration
    public int CurrentRemaining { get; }
    Property Value
    Type Description
    int
    | Improve this Doc View Source

    IsResumed

    Declaration
    public bool IsResumed { get; }
    Property Value
    Type Description
    bool

    Methods

    | Improve this Doc View Source

    BeginNestedRead(int, Size)

    Declaration
    public NestedReadScope BeginNestedRead(int size, Size bufferRequirement)
    Parameters
    Type Name Description
    int size
    Size bufferRequirement
    Returns
    Type Description
    NestedReadScope
    | Improve this Doc View Source

    BeginNestedReadAsync(int, Size, CancellationToken)

    Declaration
    public ValueTask<NestedReadScope> BeginNestedReadAsync(int size, Size bufferRequirement, CancellationToken cancellationToken = null)
    Parameters
    Type Name Description
    int size
    Size bufferRequirement
    CancellationToken cancellationToken
    Returns
    Type Description
    ValueTask<><NestedReadScope>
    | Improve this Doc View Source

    Buffer(Size)

    Declaration
    public void Buffer(Size bufferRequirement)
    Parameters
    Type Name Description
    Size bufferRequirement
    | Improve this Doc View Source

    Buffer(int)

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

    BufferAsync(Size, CancellationToken)

    Declaration
    public ValueTask BufferAsync(Size bufferRequirement, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    Size bufferRequirement
    CancellationToken cancellationToken
    Returns
    Type Description
    ValueTask
    | Improve this Doc View Source

    BufferAsync(int, CancellationToken)

    Declaration
    public ValueTask BufferAsync(int byteCount, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    int byteCount
    CancellationToken cancellationToken
    Returns
    Type Description
    ValueTask
    | Improve this Doc View Source

    Consume(int?)

    Declaration
    public void Consume(int? count = null)
    Parameters
    Type Name Description
    int? count
    | Improve this Doc View Source

    ConsumeAsync(int?, CancellationToken)

    Declaration
    public ValueTask ConsumeAsync(int? count = null, CancellationToken cancellationToken = null)
    Parameters
    Type Name Description
    int? count
    CancellationToken cancellationToken
    Returns
    Type Description
    ValueTask
    | Improve this Doc View Source

    GetStream(int?)

    Declaration
    public Stream GetStream(int? length = null)
    Parameters
    Type Name Description
    int? length
    Returns
    Type Description
    Stream
    | Improve this Doc View Source

    GetTextReader(Encoding)

    Declaration
    public TextReader GetTextReader(Encoding encoding)
    Parameters
    Type Name Description
    Encoding encoding
    Returns
    Type Description
    TextReader
    | Improve this Doc View Source

    GetTextReaderAsync(Encoding, CancellationToken)

    Declaration
    public ValueTask<TextReader> GetTextReaderAsync(Encoding encoding, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    Encoding encoding
    CancellationToken cancellationToken
    Returns
    Type Description
    ValueTask<><TextReader>
    | Improve this Doc View Source

    Read(Span<byte>)

    Declaration
    public void Read(Span<byte> destination)
    Parameters
    Type Name Description
    Span<><byte> destination
    | Improve this Doc View Source

    ReadByte()

    Declaration
    public byte ReadByte()
    Returns
    Type Description
    byte
    | Improve this Doc View Source

    ReadBytes(Span<byte>)

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

    ReadBytes(int)

    Declaration
    public ReadOnlySequence<byte> ReadBytes(int count)
    Parameters
    Type Name Description
    int count
    Returns
    Type Description
    ReadOnlySequence<><byte>
    | Improve this Doc View Source

    ReadBytesAsync(Memory<byte>, CancellationToken)

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

    ReadBytesAsync(int, CancellationToken)

    Declaration
    public ValueTask<ReadOnlySequence<byte>> ReadBytesAsync(int count, CancellationToken cancellationToken = null)
    Parameters
    Type Name Description
    int count
    CancellationToken cancellationToken
    Returns
    Type Description
    ValueTask<><ReadOnlySequence<><byte>>
    | Improve this Doc View Source

    ReadDouble()

    Declaration
    public double ReadDouble()
    Returns
    Type Description
    double
    | Improve this Doc View Source

    ReadFloat()

    Declaration
    public float ReadFloat()
    Returns
    Type Description
    float
    | Improve this Doc View Source

    ReadInt16()

    Declaration
    public short ReadInt16()
    Returns
    Type Description
    short
    | Improve this Doc View Source

    ReadInt32()

    Declaration
    public int ReadInt32()
    Returns
    Type Description
    int
    | Improve this Doc View Source

    ReadInt64()

    Declaration
    public long ReadInt64()
    Returns
    Type Description
    long
    | Improve this Doc View Source

    ReadNullTerminatedString(Encoding)

    Declaration
    public string ReadNullTerminatedString(Encoding encoding)
    Parameters
    Type Name Description
    Encoding encoding
    Returns
    Type Description
    string
    | Improve this Doc View Source

    ReadNullTerminatedStringAsync(Encoding, CancellationToken)

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

    ReadUInt16()

    Declaration
    public ushort ReadUInt16()
    Returns
    Type Description
    ushort
    | Improve this Doc View Source

    ReadUInt32()

    Declaration
    public uint ReadUInt32()
    Returns
    Type Description
    uint
    | Improve this Doc View Source

    ReadUInt64()

    Declaration
    public ulong ReadUInt64()
    Returns
    Type Description
    ulong
    | Improve this Doc View Source

    Rewind(int)

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

    ShouldBuffer(Size)

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

    ShouldBuffer(int)

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

    TryReadBytes(int, out ReadOnlyMemory<byte>)

    Declaration
    public bool TryReadBytes(int count, out ReadOnlyMemory<byte> bytes)
    Parameters
    Type Name Description
    int count
    ReadOnlyMemory<><byte> bytes
    Returns
    Type Description
    bool
    | Improve this Doc View Source

    TryReadBytes(int, out ReadOnlySpan<byte>)

    Declaration
    public bool TryReadBytes(int count, out ReadOnlySpan<byte> bytes)
    Parameters
    Type Name Description
    int count
    ReadOnlySpan<><byte> bytes
    Returns
    Type Description
    bool
    • Improve this Doc
    • View Source
    In This Article
    Back to top © Copyright 2023 The Npgsql Development Team