Lines Matching refs:binary

188 	if(has_buf) return Buffer_from(s, "binary");
1923 …case "base64": /*:: if(typeof blob !== 'string') throw "Must pass a base64-encoded binary string w…
1924 …case "binary": /*:: if(typeof blob !== 'string') throw "Must pass a binary string when type='file'…
2254 case "binary": return typeof o == "string" ? o : a2s(o);
3069 var data = (has_buf && Buffer.isBuffer(file) ? file.toString("binary") : a2s(file)).split("\r\n");
3132 /* Extract content as binary string */
3135 var cstr = has_buf && Buffer.isBuffer(ca) ? ca.toString("binary") : a2s(ca);
3251 case "binary": payload = s2ab(payload); break;
3252 /* TODO: binary equivalent */
3286 var out = File(fname); out.open("w"); out.encoding = "binary";
3293 /* read binary data from file */
3300 var infile = File(path); infile.open("r"); infile.encoding = "binary";
3414 …if(arr[1] == 0xFE && arr[2] == 0xFF) return utf8write(utf16beread(arr.slice(2).toString("binary"))…
3416 return arr.toString("binary");
3510 if(data.asNodeBuffer && has_buf) return debom(data.asNodeBuffer().toString('binary'));
3593 case "binary": return CFB.read(d, { type: "binary" });
3743 function utf8readc(data) { return Buffer_from(data, 'binary').toString('utf8'); }
3748 … = has_buf ? function(data) { return Buffer_from(data, 'utf8').toString("binary"); } : function(or…
5094 "application/vnd.ms-excel.sheet.binary.macroEnabled.main": "workbooks",
5268 xlsb: "application/vnd.ms-excel.sheet.binary.macroEnabled.main",
5353 ['bin', 'application/vnd.ms-excel.sheet.binary.macroEnabled.main'],
5781 /* 22.4.2.32 (CT_Variant). Omit the binary types from 22.4 (Variant Types) */
7708 case 'binary': d = s2a(buf); break;
8053 case 'binary': return sylk_to_aoa_str(d, opts);
8054 …case 'buffer': return sylk_to_aoa_str(has_buf && Buffer.isBuffer(d) ? d.toString('binary') : a2s(d…
8289 case 'binary': return dif_to_aoa_str(d, opts);
8290 …case 'buffer': return dif_to_aoa_str(has_buf && Buffer.isBuffer(d) ? d.toString('binary') : a2s(d)…
8654 case 'binary': str = d; break;
8658 else str = has_buf && Buffer.isBuffer(d) ? d.toString('binary') : a2s(d);
8666 …else if((opts.type == 'binary') && typeof $cptable !== 'undefined' && opts.codepage) str = $cptab…
8732 case 'binary': return lotus_to_workbook_buf(s2a(d), opts);
10381 case "binary":
10384 return rtf_to_sheet_str(has_buf && Buffer.isBuffer(d) ? d.toString("binary") : a2s(d), opts);
18069 if(opts.type == 'binary' || opts.type == 'array' || opts.type == 'base64') {
18822 case "binary": case "buffer": case "file": return parse_xlml_xml(data, opts);
19816 case 'binary': cfb = s2a(cfb); break;
19867 …fill_vba_xls(cfb, CFB.read(wb.vbaraw, {type: typeof wb.vbaraw == "string" ? "binary" : "buffer"}));
22466 case 'binary-data': break; // 10.4.5 TODO: b64 blob
25154 if(typeof index_zip.content == "string") opts.type = "binary";
25666 case 'binary': x = f; break;
25700 case 'binary': str = data; break;
25701 case 'buffer': str = data.toString('binary'); break;
25706 o.type = "binary";
25714 o.type = "binary";
25738 …if(o.type == "file") { o.type = has_buf ? "buffer" : "binary"; d = read_binary(data); if(typeof Ui…
25739 if(o.type == "string") { str = true; o.type = "binary"; o.codepage = 65001; d = bstrify(data); }
25787 case "base64": case "binary": break;
25823 case "binary": oopts.type = "string"; break;
25829 …ite(z, {fileType:"zip", type: /*::(*/{"nodebuffer": "buffer", "string": "binary"}/*:: :any)*/[oopt…
25832 if(o.type == "binary" || o.type == "base64") return out;
25854 case "binary": return utf8write(o);
25860 …else return write_string_type(o, {type:'binary'}).split("").map(function(c) { return c.charCodeAt(…
25869 case "binary": return out;
25871 case "file": return write_dl(opts.file, out, 'binary');
25873 if(has_buf) return Buffer_from(out, 'binary');
25885 case "binary":
25901 …if(o.type == "array") { o.type = "binary"; var out/*:string*/ = (writeSyncXLSX(wb, o)/*:any*/); o.…
25910 …if(o.type == "array") { o.type = "binary"; var out/*:string*/ = (writeSync(wb, o)/*:any*/); o.type…