MySQLPacket.decodeBinaryResultSetRowPacket constructor
MySQLPacket.decodeBinaryResultSetRowPacket(
- Uint8List buffer,
- List<
MySQLColumnDefinitionPacket> colDefs
Implementation
factory MySQLPacket.decodeBinaryResultSetRowPacket(
Uint8List buffer,
List<MySQLColumnDefinitionPacket> colDefs,
) {
int offset = 0;
final header = MySQLPacket.decodePacketHeader(buffer);
offset += 4;
final payloadLength = header.item1;
final sequenceNumber = header.item2;
final payload = MySQLBinaryResultSetRowPacket.decode(
Uint8List.sublistView(buffer, offset),
colDefs,
);
return MySQLPacket(
sequenceID: sequenceNumber,
payloadLength: payloadLength,
payload: payload,
);
}