v8gbuffer method

List<int> v8gbuffer(
  1. List<int> buffer,
  2. {V8GenericOptions? config,
  3. int offset = 0}
)

Generates a draft time-based version 8 UUID into a provided buffer

Takes in 128 bits (16 bytes) of custom data, and produces a valid V8 uuid. Bits 48-51 and bits 64-65 will be modified to create a valid uuid. It 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 V8GenericOptions 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> v8gbuffer(
  List<int> buffer, {
  V8GenericOptions? config,
  int offset = 0,
}) {
  return UuidParsing.parse(v8g(config: config),
      buffer: buffer, offset: offset);
}