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

msgV3 PoC #1781

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

msgV3 PoC #1781

wants to merge 1 commit into from

Conversation

zoff99
Copy link

@zoff99 zoff99 commented Dec 17, 2021

This change is Reviewable

```
#define TOX_MAX_MESSAGE_LENGTH (1372)
#define TOX_MSGV3_MSGID_LENGTH (32)
#define TOX_MSGV3_TIMESTAMP_LENGTH (4)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i know. but whats the fix? using 64bits is taking 8 bytes.
is there a better solution that 64bits?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unsigned 32-bits should work until year 2106.

If extended to 5 bytes = 40bits, it could store a range of about 34865 years.

@pull-request-attention pull-request-attention bot assigned zoff99 and nurupo and unassigned zoff99 and nurupo Jan 1, 2022
@iphydf iphydf added this to the v0.2.x milestone Feb 4, 2022
@iphydf iphydf added P3 Low priority and removed P3 Low priority labels Feb 5, 2022
@iphydf iphydf marked this pull request as draft February 19, 2022 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants