10 lines
364 B
JavaScript
10 lines
364 B
JavaScript
function _write(cfb/*:CFBContainer*/, options/*:CFBWriteOpts*/)/*:RawBytes|string*/ {
|
|
var _opts = options || {};
|
|
/* MAD is order-sensitive, skip rebuild and sort */
|
|
if(_opts.fileType == 'mad') return write_mad(cfb, _opts);
|
|
rebuild_cfb(cfb);
|
|
switch(_opts.fileType) {
|
|
case 'zip': return write_zip(cfb, _opts);
|
|
//case 'mad': return write_mad(cfb, _opts);
|
|
}
|