v8buffer method
Generates a draft time-based version 8 UUID into a provided buffer
By default it will generate a string based off current Unix epoch time in
milliseconds, 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 optional argument is a V8Options object that takes the same options as the options map.
https://datatracker.ietf.org/doc/html/draft-ietf-uuidrev-rfc4122bis#name-uuid-version-8
Implementation
List<int> v8buffer(
List<int> buffer, {
V8Options? config,
int offset = 0,
}) {
return UuidParsing.parse(v8(config: config),
buffer: buffer, offset: offset);
}