fromBytes


Description:

public static string? fromBytes (uint8[] bytes, string type)

Converts bytes to identifier string of given type.

Supported type values: uuid, uuid_v4, uuid_v7, ulid, ksuid.

Parameters:

bytes

input bytes.

type

target type string.

Returns:

encoded identifier string, or null.