Why are file names in Bangle.js limited to 28 chars? #7826
-
The title pretty much says it all, just curious why... 28 seems like an odd number to limit chars for filenames |
Beta Was this translation helpful? Give feedback.
Answered by
gfwilliams
Aug 1, 2025
Replies: 1 comment 1 reply
-
We want to try and keep things aligned on at least 8 byte boundaries (some STM32s have a restriction iirc), and so it made sense to make the file header 32 bytes. We pack the file size and other flags into 4 bytes, and that leaves 28 for the name :) Originally it was 12 characters I think and a 16 byte header, but I expanded it. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
RKBoss6
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We want to try and keep things aligned on at least 8 byte boundaries (some STM32s have a restriction iirc), and so it made sense to make the file header 32 bytes. We pack the file size and other flags into 4 bytes, and that leaves 28 for the name :)
Originally it was 12 characters I think and a 16 byte header, but I expanded it.