docs: function write_wb_bin(wb, opts) {
  	var ba = buf_array();
  	write_record(ba, "BrtBeginBook");
  	write_record(ba, "BrtFileVersion", write_BrtFileVersion());
  	/* [[BrtFileSharingIso] BrtFileSharing] */
  	write_record(ba, "BrtWbProp", write_BrtWbProp(wb.Workbook && wb.Workbook.WBProps || null));
  	/* [ACABSPATH] */
  	/* [[BrtBookProtectionIso] BrtBookProtection] */
  	write_BOOKVIEWS(ba, wb, opts);
  	write_BUNDLESHS(ba, wb, opts);
  	/* [FNGROUP] */
  	/* [EXTERNALS] */
  	/* *BrtName */
  	/* write_record(ba, "BrtCalcProp", write_BrtCalcProp()); */
  	/* [BrtOleSize] */
  	/* *(BrtUserBookView *FRT) */
  	/* [PIVOTCACHEIDS] */
  	/* [BrtWbFactoid] */
  	/* [SMARTTAGTYPES] */
  	/* [BrtWebOpt] */
  	/* write_record(ba, "BrtFileRecover", write_BrtFileRecover()); */
  	/* [WEBPUBITEMS] */
  	/* [CRERRS] */
  	/* FRTWORKBOOK */
  	write_record(ba, "BrtEndBook");
  
  	return ba.end();
  }