v8buffer method Null safety

List<int> v8buffer(
  1. List<int> buffer,
  2. {Map<String, dynamic>? options,
  3. int offset = 0}
)

v8buffer() Generates a draft time-based version 8 UUID

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 argument is an options map that takes various configuration options detailed in the readme.

https://www.ietf.org/archive/id/draft-peabody-dispatch-new-uuid-format-01.html#name-uuidv7-layout-and-bit-order

Implementation

List<int> v8buffer(
  List<int> buffer, {
  Map<String, dynamic>? options,
  int offset = 0,
}) {
  return UuidParsing.parse(v8(options: options), buffer: buffer, offset: offset);
}