end = Math.min(buf.length, end)
for (var i = start; i < end; i++) {
- ret += String.fromCharCode(buf[i])
+ ret += String.fromCharCode(buf[i] & 0x7F)
}
return ret
}
function binarySlice (buf, start, end) {
- return asciiSlice(buf, start, end)
+ var ret = ''
+ end = Math.min(buf.length, end)
+
+ for (var i = start; i < end; i++) {
+ ret += String.fromCharCode(buf[i])
+ }
+ return ret
}
function hexSlice (buf, start, end) {