Skip to content

Be more public about the fact that converting from Bytes to Sectors can result in overflow #912

@mulkieran

Description

@mulkieran

This is a necessary consequence of our design decisions to use 128 bit value for Bytes and 64 bit value for sectors.

Given b where (2^128 - 1) > b > (2^64 - 1)*2^9 , Bytes(b).sectors() evaluates to 0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions