MCPcopy Create free account
hub / github.com/ReactJSResources/react-webpack-babel / encodeBlobAsArrayBuffer

Function encodeBlobAsArrayBuffer

public/bundle.js:4963–4974  ·  view source on GitHub ↗
(packet, supportsBinary, callback)

Source from the content-addressed store, hash-verified

4961 }
4962
4963 function encodeBlobAsArrayBuffer(packet, supportsBinary, callback) {
4964 if (!supportsBinary) {
4965 return exports.encodeBase64Packet(packet, callback);
4966 }
4967
4968 var fr = new FileReader();
4969 fr.onload = function() {
4970 packet.data = fr.result;
4971 exports.encodePacket(packet, supportsBinary, true, callback);
4972 };
4973 return fr.readAsArrayBuffer(packet.data);
4974 }
4975
4976 function encodeBlob(packet, supportsBinary, callback) {
4977 if (!supportsBinary) {

Callers 1

encodeBlobFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected