PrepareOkPacket constructor

PrepareOkPacket(
  1. Buffer buffer
)

Implementation

PrepareOkPacket(Buffer buffer) {
  buffer.seek(1);
  _statementHandlerId = buffer.readUint32();
  _columnCount = buffer.readUint16();
  _parameterCount = buffer.readUint16();
  buffer.skip(1);
  if (buffer.canReadMore()) {
    _warningCount = buffer.readUint16();
  } else {
    _warningCount = 0;
  }
}