(str)
| 2032 | } |
| 2033 | |
| 2034 | function asciiToBytes (str) { |
| 2035 | const byteArray = [] |
| 2036 | for (let i = 0; i < str.length; ++i) { |
| 2037 | // Node's code seems to be doing this and not & 0x7F.. |
| 2038 | byteArray.push(str.charCodeAt(i) & 0xFF) |
| 2039 | } |
| 2040 | return byteArray |
| 2041 | } |
| 2042 | |
| 2043 | function utf16leToBytes (str, units) { |
| 2044 | let c, hi, lo |
no outgoing calls
no test coverage detected
searching dependent graphs…