We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
For the use case of displaying unit sizes for block devices, which are measured in sectors instead of bytes (512 bytes per sector).
The text was updated successfully, but these errors were encountered:
Hey, better late than never!
What would you expect from this, a different function someNumber.sector_size(options) or the same function with an extra flag in the options?
someNumber.sector_size(options)
Is it always 512 bytes or does that need to change?
Are there any other things you would expect to be able to customise for this use case?
Out of curiosity, what project/use case would you like this for, if it's available publicly?
Thanks in advance.
Sorry, something went wrong.
The sector size isn't guaranteed to be 512. It's the most common sector size, but some SSDs and magnetic drives are using 4096 byte sector sizes.
No branches or pull requests
For the use case of displaying unit sizes for block devices, which are measured in sectors instead of bytes (512 bytes per sector).
The text was updated successfully, but these errors were encountered: