Skip to content

msgV3 PoC#1781

Draft
zoff99 wants to merge 1 commit intoTokTok:masterfrom
zoff99:zoff99/msgv3_poc_001
Draft

msgV3 PoC#1781
zoff99 wants to merge 1 commit intoTokTok:masterfrom
zoff99:zoff99/msgv3_poc_001

Conversation

@zoff99
Copy link
Copy Markdown

@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
Copy Markdown
Member

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
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
Copy Markdown
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

Development

Successfully merging this pull request may close these issues.

3 participants