serializeParameters function
Serializes a list of parameters
compatible with the sqlite3 package into
a pair of an JSArrayBuffer and a JSArray.
The JSArray is backwards-compatible with clients calling toDart
on the
array and dartify()
on the entries.
However, the JSArrayBuffer provides out-of-band type information about
the entries in the array. When one of the communication partners was
compiled with dart2wasm, this is useful to tell integers and doubles apart
reliably.
Implementation
(JSArray, JSArrayBuffer) serializeParameters(List<Object?> parameters) {
return TypeCode.encodeValues(parameters);
}