MySQLPacket.decodeBinaryResultSetRowPacket constructor

MySQLPacket.decodeBinaryResultSetRowPacket(
  1. Uint8List buffer,
  2. List<MySQLColumnDefinitionPacket> colDefs, {
  3. List<bool>? textualColumns,
})

Decodifica uma linha de ResultSet em formato binĂ¡rio MySQLBinaryResultSetRowPacket.

Implementation

factory MySQLPacket.decodeBinaryResultSetRowPacket(
    Uint8List buffer, List<MySQLColumnDefinitionPacket> colDefs,
    {List<bool>? textualColumns}) {
  final header = decodePacketHeader(buffer);
  final offset = 4;
  final payload = MySQLBinaryResultSetRowPacket.decode(
    Uint8List.sublistView(buffer, offset),
    colDefs,
    textualColumns: textualColumns,
  );
  return MySQLPacket(
    sequenceID: header.item2,
    payloadLength: header.item1,
    payload: payload,
  );
}