MCPcopy Index your code
hub / github.com/diffgram/diffgram / encode

Function encode

frontend/cypress/support/commands.js:844–850  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

842 cy.fixture(file_path, 'utf8')
843 .then(async (obj) => {
844 function encode(s) {
845 const out = [];
846 for (let i = 0; i < s.length; i++) {
847 out[i] = s.charCodeAt(i);
848 }
849 return new Uint8Array(out);
850 }
851
852 const str = JSON.stringify(obj);
853 const data_encoded = encode(str);

Callers 1

commands.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected