Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UIDs are 64-bit numbers, their constructor should support numbers. #38

Closed
claunia opened this issue May 20, 2017 · 0 comments
Closed

UIDs are 64-bit numbers, their constructor should support numbers. #38

claunia opened this issue May 20, 2017 · 0 comments

Comments

@claunia
Copy link

claunia commented May 20, 2017

As per
claunia/plist-cil#3
I checked and that's what Apple's code does.
tl;dr: it takes a 64-bit number and stores it in 1, 2, 4 or 8 big-endian bytes depending on its value.

So creating an UID object from a number (byte/int/long) should be supported.
Here's my code:
claunia/plist-cil@1979dab

Repository owner deleted a comment from abdulaziz52 Jun 14, 2018
3breadt added a commit that referenced this issue Dec 17, 2022
Base UIDs on BigInteger (Issue #38) and implement Comparable (Issue #80).
Encoding UIDs now returns variable length byte arrays (1, 2, 4, 8 or 16 bytes).
@3breadt 3breadt closed this as completed Dec 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants