js-cfb/bits/60_writehead.js

10 lines
364 B
JavaScript
Raw Normal View History

2020-07-09 06:12:05 +00:00
function _write(cfb/*:CFBContainer*/, options/*:CFBWriteOpts*/)/*:RawBytes|string*/ {
2018-01-19 01:09:51 +00:00
var _opts = options || {};
2020-07-09 06:12:05 +00:00
/* MAD is order-sensitive, skip rebuild and sort */
if(_opts.fileType == 'mad') return write_mad(cfb, _opts);
2017-09-14 21:14:22 +00:00
rebuild_cfb(cfb);
2020-07-09 06:12:05 +00:00
switch(_opts.fileType) {
case 'zip': return write_zip(cfb, _opts);
//case 'mad': return write_mad(cfb, _opts);
}