The Uint8Array that stores the file data is usually larger than the file size itself, to improve the amortized complexity of resizing the array. When we previously switched over to using FileStorages, the method fs#Write() was modified to retrieve only the subarray of the Uint8Array that contains the file (i.e. excluding the unused padding at the end), so appending to a file always tries to resize the array even though the ArrayBuffer that backs it has enough space for the new data. |
||
|---|---|---|
| .. | ||
| 9p.js | ||
| closure-base.js | ||
| filesystem.js | ||
| jor1k.js | ||
| marshall.js | ||
| utf8.js | ||