Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
518: Added support for converting u64 pair into UUID and back r=kinggoesgaming a=SaiintBrisson This PR resolves #517 by adding two methods: `Uuid::from_u64_pair(high_bits, low_bits) -> Uuid`: Creates a UUID from two u64, the first being the MSBs, and the second, the LSBs. `Uuid::as_u64_pair(&self) -> (u64, u64)`: Returns a pair of u64, the first being the MSBs, and the second, the LSBs. Co-authored-by: Luiz Carlos Mourão Paes de Carvalho <luizcarlosmpc@gmail.com>
- Loading branch information
Showing
2 changed files
with
72 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters