Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/fileBytes.md → docs/developers/fileBytes.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## How Many Bytes Does a File Need?
## Bytes for a File

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

Moving this file to the developers/ subdirectory breaks the documentation index. The docs-index.html file contains a hardcoded link to the old path (line 21), and scripts/generate-docs-index.js only performs a shallow scan of the docs/ directory, which will cause this file to be omitted from future index generations. Please update the indexing logic to handle nested directories and update the hardcoded links.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Update publish manifest when moving this doc

Relocating this file removes docs/fileBytes.md, but the npm files whitelist in package.json still points to the old path (docs/fileBytes.md at line 81), so the new docs/developers/fileBytes.md is not included in npm pack/publish. That makes the moved doc disappear for package consumers and can break tooling that expects it to ship; update manifest references to the new location as part of this move.

Useful? React with 👍 / 👎.

To determine how much memory a file requires, you need to consider its contents.
For example, in a text file, the size is determined by the number of characters (including spaces and punctuation). Each character typically requires one or more bytes of storage.
For other types of files, like images, the calculation is different. For an image on a 160x120 pixel screen, the total memory needed would be the total number of pixels (160 * 120) multiplied by the number of bytes required to store the color of each pixel (which depends on the bits per pixel, or BPP).
Loading