Lines Matching refs:data
37 this.data = [];
39 , FakeBlob = function Blob(data, type, encoding) { argument
40 this.data = data;
41 this.size = data.length;
102 return data_URI_header + ";base64," + blob.data;
104 return data_URI_header + "," + decodeURIComponent(blob.data);
106 return data_URI_header + ";base64," + btoa(blob.data);
108 return data_URI_header + "," + encodeURIComponent(blob.data);
119 FBB_proto.append = function(data/*, endings*/) { argument
120 var bb = this.data;
122 if (Uint8Array && (data instanceof ArrayBuffer || data instanceof Uint8Array)) {
125 , buf = new Uint8Array(data)
133 } else if (get_class(data) === "Blob" || get_class(data) === "File") {
136 bb.push(fr.readAsBinaryString(data));
141 } else if (data instanceof FakeBlob) {
142 if (data.encoding === "base64" && atob) {
143 bb.push(atob(data.data));
144 } else if (data.encoding === "URI") {
145 bb.push(decodeURIComponent(data.data));
146 } else if (data.encoding === "raw") {
147 bb.push(data.data);
150 if (typeof data !== "string") {
151 data += ""; // convert unsupported types to strings
154 bb.push(unescape(encodeURIComponent(data)));
161 return new FakeBlob(this.data.join(""), type, "raw");
172 this.data.slice(start, args > 1 ? end : this.data.length)
182 delete this.data;