Remove debug output.
Use typed arrays for the buffersif they are available in the browser.
Refactor use of byte arrays
Previously, byte arrays were implemented as string with values from 0 to 255 inclusive. Some runtimes such as Node and modern browsers have native array implementations. These should be faster.
This commit changes changes WebODF to use the native arrays. Since byte arrays differ across runtimes, they are now abstracted by the Runtime.
Add code to serialize the DOM to the ODF file. This is not complete yet.
More type checking.
Slight refactor with more type checking.
Fix compilation and unit tests.
Fix roundtripping of Zip files and ODF files.An open issue is that, if the ODF file has been modified, the changes have to be reflected in the Zip entries. In other words, DOM serialization is not part of the saving process yet.
Make sure the data for allzip entries has been loaded before starting to write the zip file.
If there is no data in a zip file entry, save it as an empty entry.
Also available in: