(buf, start, end)
| 1047 | } |
| 1048 | |
| 1049 | function binarySlice(buf, start, end) { |
| 1050 | var ret = "" |
| 1051 | end = Math.min(buf.length, end) |
| 1052 | |
| 1053 | for (var i = start; i < end; i++) { |
| 1054 | ret += String.fromCharCode(buf[i]) |
| 1055 | } |
| 1056 | return ret |
| 1057 | } |
| 1058 | |
| 1059 | function hexSlice(buf, start, end) { |
| 1060 | var len = buf.length |
no outgoing calls
no test coverage detected
searching dependent graphs…