Skip to content

History block definition is incorrect #4

@pierre-24

Description

@pierre-24

According to documentation, history block should be 3 bytes long, and the first 18 bits should contain "time" while the last 6 bits should contain "facet". Except that, in practice, my tests results in

  • The facet value is written starting on the 16th bit: it is especially visible when you set the timeflip to pause, since it should normally write 6 "1" (value "63") in the last 6 bits ... When it does actually write them starting at the 16th position (and the two last bits are actually always 0, so if you naively read the value starting at the 18th bit, it is 4 times too large).
  • "time" is actually duration of the facet in second (documentation was not clear about that). Thus, one can assume that time is written in the 2 first bytes ... Except I have no idea what would happen if duration exceed 2¹⁶ seconds: will there be some collision ?

Took me time to figure out that ;)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions