MCPcopy Create free account
hub / github.com/feross/buffer / latin1Slice

Function latin1Slice

index.js:1061–1069  ·  view source on GitHub ↗
(buf, start, end)

Source from the content-addressed store, hash-verified

1059}
1060
1061function latin1Slice (buf, start, end) {
1062 let ret = ''
1063 end = Math.min(buf.length, end)
1064
1065 for (let i = start; i < end; ++i) {
1066 ret += String.fromCharCode(buf[i])
1067 }
1068 return ret
1069}
1070
1071function hexSlice (buf, start, end) {
1072 const len = buf.length

Callers 1

slowToStringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected