writeValuesToBuffer method
Implementation
Uint8List writeValuesToBuffer(List<int> nullMap, int length, List<int> types) {
var buffer = FixedWriteBuffer(10 + nullMap.length + 1 + types.length + length);
buffer.byte = COM_STMT_EXECUTE;
buffer.uint32 = preparedQuery!.statementHandlerId!;
buffer.byte = 0;
buffer.uint32 = 1;
buffer.writeList(nullMap);
if (!_executed) {
buffer.byte = 1;
buffer.writeList(types);
for (int i = 0; i < _values.length; i++) {
_writeValue(_values[i], preparedValues[i], buffer);
}
} else {
buffer.byte = 0;
}
return buffer.data;
}