Render
Render renders the demo for gnoweb.
Command
gnokey query vm/qeval -remote "tcp://127.0.0.1:18899" -data "gno.land/r/moul/x/daily/bencodedemo/v0.Render()"
Result
Package bencodedemo is a small gnoweb demo of the bencode codec provided by the p/moul/x/daily/bencode(/p/moul/x/daily/bencode/v0) library: the four types, the round trip that makes an infohash reproducible, and the non-canonical inputs the decoder refuses instead of tidying up.
It contains no codec logic of its own. Stateless, so Render is deterministic: every figure below is computed from the fixed tables at the top of this file, never from chain state.
Render renders the demo for gnoweb.
gnokey query vm/qeval -remote "tcp://127.0.0.1:18899" -data "gno.land/r/moul/x/daily/bencodedemo/v0.Render()"
Evaluate any read-only Gno expression against gno.land/r/moul/x/daily/bencodedemo/v0, for example a function call with arguments.
// Enter an expression above