js-cfb/bits/60_writehead.js

5 lines
185 B
JavaScript

function _write(cfb/*:CFBContainer*/, options/*:CFBWriteOpts*/)/*:RawBytes*/ {
var _opts = options || {};
rebuild_cfb(cfb);
if(_opts.fileType == 'zip') return write_zip(cfb, _opts);