feat(plugin-api): add java/bedrock abstraction
This commit is contained in:
1 parent
5aafff35e8
commit
966fbec3d3
138 files changed
+3613
-1126
No files matched your search
@@ -0,0 +1,16 @@
|
||||
interface uuid {
|
||||
/// A 128-bit UUID represented as two 64-bit integers.
|
||||
record uuid {
|
||||
high: u64,
|
||||
low: u64,
|
||||
}
|
||||
|
||||
/// Generates a new random v4 UUID.
|
||||
generate: func() -> uuid;
|
||||
|
||||
/// Parses a UUID from a string. Returns none if the string is not a valid UUID.
|
||||
parse: func(s: string) -> option<uuid>;
|
||||
|
||||
/// Converts a UUID to its standard string representation.
|
||||
to-string: func(id: uuid) -> string;
|
||||
}
|
||||
Reference in new issue
Block a user