(str)
| 4342 | } |
| 4343 | |
| 4344 | function asciiToBytes (str) { |
| 4345 | var byteArray = [] |
| 4346 | for (var i = 0; i < str.length; ++i) { |
| 4347 | // Node's code seems to be doing this and not & 0x7F.. |
| 4348 | byteArray.push(str.charCodeAt(i) & 0xFF) |
| 4349 | } |
| 4350 | return byteArray |
| 4351 | } |
| 4352 | |
| 4353 | function utf16leToBytes (str, units) { |
| 4354 | var c, hi, lo |
no outgoing calls
no test coverage detected
searching dependent graphs…