v1buffer method
v1buffer() Generates a time-based version 1 UUID
By default it will generate a string based off current time, and will
place the result into the provided buffer
. The buffer
will also be returned..
Optionally an offset
can be provided with a start position in the buffer.
The first argument is an options map that takes various configuration options detailed in the readme.
Implementation
List<int> v1buffer(
List<int> buffer, {
Map<String, dynamic> options,
int offset = 0,
}) {
var _buf = parse(v1(options: options));
if (buffer != null) {
buffer.setRange(offset, offset + 16, _buf);
}
return buffer;
}