Search Results for

    Show / Hide Table of Contents

    Class NpgsqlWriteBuffer

    A buffer used by Npgsql to write data to the socket efficiently. Provides methods which encode different values types and tracks the current position.

    Inheritance
    Object
    NpgsqlWriteBuffer
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: Npgsql
    Assembly: Npgsql.dll
    Syntax
    public sealed class NpgsqlWriteBuffer

    Properties

    | Improve this Doc

    WriteSpaceLeft

    Declaration
    public int WriteSpaceLeft { get; }
    Property Value
    Type Description
    Int32

    Methods

    | Improve this Doc

    Flush(Boolean)

    Declaration
    public async Task Flush(bool async)
    Parameters
    Type Name Description
    Boolean async
    Returns
    Type Description
    Task
    | Improve this Doc

    GetStream()

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

    WriteByte(Byte)

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

    WriteBytes(Byte[], Int32, Int32)

    Declaration
    public void WriteBytes(byte[] buf, int offset, int count)
    Parameters
    Type Name Description
    Byte[] buf
    Int32 offset
    Int32 count
    | Improve this Doc

    WriteBytes(ReadOnlySpan<Byte>)

    Declaration
    public void WriteBytes(ReadOnlySpan<byte> buf)
    Parameters
    Type Name Description
    ReadOnlySpan<Byte> buf
    | Improve this Doc

    WriteBytesRaw(Byte[], Boolean)

    Declaration
    public Task WriteBytesRaw(byte[] bytes, bool async)
    Parameters
    Type Name Description
    Byte[] bytes
    Boolean async
    Returns
    Type Description
    Task
    | Improve this Doc

    WriteDouble(Double)

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

    WriteDouble(Double, Boolean)

    Declaration
    public void WriteDouble(double value, bool littleEndian)
    Parameters
    Type Name Description
    Double value
    Boolean littleEndian
    | Improve this Doc

    WriteInt16(Int16)

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

    WriteInt16(Int16, Boolean)

    Declaration
    public void WriteInt16(short value, bool littleEndian)
    Parameters
    Type Name Description
    Int16 value
    Boolean littleEndian
    | Improve this Doc

    WriteInt32(Int32)

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

    WriteInt32(Int32, Boolean)

    Declaration
    public void WriteInt32(int value, bool littleEndian)
    Parameters
    Type Name Description
    Int32 value
    Boolean littleEndian
    | Improve this Doc

    WriteInt64(Int64)

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

    WriteInt64(Int64, Boolean)

    Declaration
    public void WriteInt64(long value, bool littleEndian)
    Parameters
    Type Name Description
    Int64 value
    Boolean littleEndian
    | Improve this Doc

    WriteNullTerminatedString(String)

    Declaration
    public void WriteNullTerminatedString(string s)
    Parameters
    Type Name Description
    String s
    | Improve this Doc

    WriteSByte(SByte)

    Declaration
    public void WriteSByte(sbyte value)
    Parameters
    Type Name Description
    SByte value
    | Improve this Doc

    WriteSingle(Single)

    Declaration
    public void WriteSingle(float value)
    Parameters
    Type Name Description
    Single value
    | Improve this Doc

    WriteSingle(Single, Boolean)

    Declaration
    public void WriteSingle(float value, bool littleEndian)
    Parameters
    Type Name Description
    Single value
    Boolean littleEndian
    | Improve this Doc

    WriteString(String, Int32)

    Declaration
    public void WriteString(string s, int len = 0)
    Parameters
    Type Name Description
    String s
    Int32 len
    | Improve this Doc

    WriteString(String, Int32, Boolean)

    Declaration
    public Task WriteString(string s, int byteLen, bool async)
    Parameters
    Type Name Description
    String s
    Int32 byteLen
    Boolean async
    Returns
    Type Description
    Task
    | Improve this Doc

    WriteString(String, Int32, Int32, Boolean)

    Declaration
    public Task WriteString(string s, int charLen, int byteLen, bool async)
    Parameters
    Type Name Description
    String s
    Int32 charLen
    Int32 byteLen
    Boolean async
    Returns
    Type Description
    Task
    | Improve this Doc

    WriteUInt16(UInt16)

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

    WriteUInt16(UInt16, Boolean)

    Declaration
    public void WriteUInt16(ushort value, bool littleEndian)
    Parameters
    Type Name Description
    UInt16 value
    Boolean littleEndian
    | Improve this Doc

    WriteUInt32(UInt32)

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

    WriteUInt32(UInt32, Boolean)

    Declaration
    public void WriteUInt32(uint value, bool littleEndian)
    Parameters
    Type Name Description
    UInt32 value
    Boolean littleEndian
    | Improve this Doc

    WriteUInt64(UInt64)

    Declaration
    public void WriteUInt64(ulong value)
    Parameters
    Type Name Description
    UInt64 value
    | Improve this Doc

    WriteUInt64(UInt64, Boolean)

    Declaration
    public void WriteUInt64(ulong value, bool littleEndian)
    Parameters
    Type Name Description
    UInt64 value
    Boolean littleEndian
    • Improve this Doc
    In This Article
    Back to top © Copyright 2021 The Npgsql Development Team