MySQLPacket.decodeResultSetRowPacket constructor
MySQLPacket.decodeResultSetRowPacket(
- Uint8List buffer,
- int numOfCols
)
Implementation
factory MySQLPacket.decodeResultSetRowPacket(
Uint8List buffer,
int numOfCols,
) {
int offset = 0;
final header = MySQLPacket.decodePacketHeader(buffer);
offset += 4;
final payloadLength = header.item1;
final sequenceNumber = header.item2;
final payload = MySQLResultSetRowPacket.decode(
Uint8List.sublistView(buffer, offset),
numOfCols,
);
return MySQLPacket(
sequenceID: sequenceNumber,
payloadLength: payloadLength,
payload: payload,
);
}