MCPcopy Index your code
hub / github.com/apache/pouchdb / arrayBufferToBinaryString

Function arrayBufferToBinaryString

lib/index-browser.js:826–834  ·  view source on GitHub ↗
(buffer)

Source from the content-addressed store, hash-verified

824//http://stackoverflow.com/questions/6965107/ (continues on next line)
825//converting-between-strings-and-arraybuffers
826function arrayBufferToBinaryString(buffer) {
827 var binary = '';
828 var bytes = new Uint8Array(buffer);
829 var length = bytes.byteLength;
830 for (var i = 0; i < length; i++) {
831 binary += String.fromCharCode(bytes[i]);
832 }
833 return binary;
834}
835
836// shim for browsers that don't support it
837function readAsBinaryString(blob, callback) {

Callers 1

readAsBinaryStringFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…