ResultSetHeaderPacket.fromBuffer constructor

ResultSetHeaderPacket.fromBuffer(
  1. ReadBuffer buffer
)

Implementation

factory ResultSetHeaderPacket.fromBuffer(ReadBuffer buffer) {
  int? fieldCount = buffer.readLengthCodedBinary();
  int? extra;
  if (buffer.canReadMore) extra = buffer.readLengthCodedBinary();
  return ResultSetHeaderPacket(fieldCount, extra);
}