writeValuesToBuffer method
Implementation
Buffer writeValuesToBuffer(List<int> nullMap, int length, List<int> types) {
var buffer = Buffer(10 + nullMap.length + 1 + types.length + length);
buffer.writeByte(COM_STMT_EXECUTE);
buffer.writeUint32(_preparedQuery!.statementHandlerId);
buffer.writeByte(0);
buffer.writeUint32(1);
buffer.writeList(nullMap);
if (!_executed) {
buffer.writeByte(1);
buffer.writeList(types);
for (var i = 0; i < _values.length; i++) {
_writeValue(_values[i], preparedValues![i], buffer);
}
} else {
buffer.writeByte(0);
}
return buffer;
}