Npgsql.FrontendMessages.BindMessage.Write C# (CSharp) Method

Write() private method

Bind is a special message in that it supports the "direct buffer" optimization, which allows us to write user byte[] data directly to the stream rather than copying it into our buffer. It therefore has its own special overload of Write below.
private Write ( WriteBuffer buf ) : bool
buf WriteBuffer
return bool
        internal override bool Write(WriteBuffer buf)
        {
            throw new NotSupportedException($"Internal error, call the overload of {nameof(Write)} which accepts a {nameof(DirectBuffer)}");
        }

Same methods

BindMessage::Write ( WriteBuffer buf, DirectBuffer &directBuf ) : bool