Skip to content

Instantly share code, notes, and snippets.

View laas29's full-sized avatar
🏠
Working from home

Luis Arias laas29

🏠
Working from home
View GitHub Profile
@skratchdot
skratchdot / arrayBufferToString.js
Created March 3, 2016 04:43
Array Buffer -> String and String -> ArrayBuffer conversions in javascript
// source: http://stackoverflow.com/a/11058858
function ab2str(buf) {
return String.fromCharCode.apply(null, new Uint16Array(buf));
}