MCPcopy Index your code
hub / github.com/compiler-explorer/compiler-explorer / encode_array

Function encode_array

shared/rison.ts:206–210  ·  view source on GitHub ↗
(v: JSONValue)

Source from the content-addressed store, hash-verified

204 *
205 */
206export function encode_array(v: JSONValue) {
207 if (!Array.isArray(v)) throw new Error('rison.encode_array expects an array argument');
208 const r = unwrap(encode_table[typeof v](v));
209 return r.substring(2, r.length - 1);
210}
211
212/**
213 * rison-encode and uri-encode a javascript structure

Callers

nothing calls this directly

Calls 1

unwrapFunction · 0.70

Tested by

no test coverage detected