MCPcopy Index your code
hub / github.com/OneNoteDev/WebClipper / asciiToBytes

Function asciiToBytes

lib/sanitize-html.js:2344–2351  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

2342}
2343
2344function asciiToBytes (str) {
2345 var byteArray = []
2346 for (var i = 0; i < str.length; ++i) {
2347 // Node's code seems to be doing this and not & 0x7F..
2348 byteArray.push(str.charCodeAt(i) & 0xFF)
2349 }
2350 return byteArray
2351}
2352
2353function utf16leToBytes (str, units) {
2354 var c, hi, lo

Callers 1

asciiWriteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected