Home | History | Annotate | Download | only in embenchen

Lines Matching full:bytearray

3680         function processData(byteArray) {
3681 function finish(byteArray) {
3683 FS.createDataFile(parent, name, byteArray, canRead, canWrite, canOwn);
3692 plugin['handle'](byteArray, fullname, finish, function() {
3699 if (!handled) finish(byteArray);
3703 Browser.asyncLoad(url, function(byteArray) {
3704 processData(byteArray);
3952 imagePlugin['handle'] = function imagePlugin_handle(byteArray, name, onload, onerror) {
3956 b = new Blob([byteArray], { type: Browser.getMimetype(name) });
3957 if (b.size !== byteArray.length) { // Safari bug #118630
3959 b = new Blob([(new Uint8Array(byteArray)).buffer], { type: Browser.getMimetype(name) });
3967 bb.append((new Uint8Array(byteArray)).buffer); // we need to pass a buffer, and must copy the array to get the right data range
3981 if (onload) onload(byteArray);
3995 audioPlugin['handle'] = function audioPlugin_handle(byteArray, name, onload, onerror) {
4001 if (onload) onload(byteArray);
4011 var b = new Blob([byteArray], { type: Browser.getMimetype(name) });
4045 audio.src = 'data:audio/x-' + name.substr(-3) + ';base64,' + encode64(byteArray);