applyToBuffer method

  1. @override
void applyToBuffer(
  1. PgByteDataWriter buffer
)
override

Implementation

@override
void applyToBuffer(PgByteDataWriter buffer) {
  buffer.writeUint8(ClientMessageId.describe);
  final name = buffer.encodeString(_name);
  final length = 6 + name.bytesLength;
  buffer.writeUint32(length);
  buffer.writeUint8(_isPortal ? $P : $S);
  buffer.writeEncodedString(name); // Name of prepared statement
}