MCPcopy Index your code
hub / github.com/plotly/plotly.js / asciiToBytes

Function asciiToBytes

stackgl_modules/index.js:1482–1489  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

1480 return bytes;
1481}
1482function asciiToBytes(str) {
1483 var byteArray = [];
1484 for (var i = 0; i < str.length; ++i) {
1485 // Node's code seems to be doing this and not & 0x7F..
1486 byteArray.push(str.charCodeAt(i) & 0xFF);
1487 }
1488 return byteArray;
1489}
1490function utf16leToBytes(str, units) {
1491 var c, hi, lo;
1492 var byteArray = [];

Callers 1

asciiWriteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…