MCPcopy Create free account
hub / github.com/reactjs/react-rails / base64Slice

Function base64Slice

lib/assets/javascripts/JSXTransformer.js:920–926  ·  view source on GitHub ↗
(buf, start, end)

Source from the content-addressed store, hash-verified

918}
919
920function base64Slice (buf, start, end) {
921 if (start === 0 && end === buf.length) {
922 return base64.fromByteArray(buf)
923 } else {
924 return base64.fromByteArray(buf.slice(start, end))
925 }
926}
927
928function utf8Slice (buf, start, end) {
929 var res = ''

Callers 1

JSXTransformer.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected