MySQLPacket.decodeBinaryResultSetRowPacket constructor
MySQLPacket.decodeBinaryResultSetRowPacket(
- Uint8List buffer,
- List<
MySQLColumnDefinitionPacket> colDefs, { - 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,
);
}