dagjson.Marshal(basicnode.NewString(string(cn)),json.NewEncoder(&buf,json.EncodeOptions{}))// FIXME this would be a lot less irritating if we had more plumbing access to the json encoding -- we want to encode exactly one string into a buffer, it literally can't error.
tab.keySize[cn]=buf.Len()// FIXME this is ignoring charsets, renderable glyphs, etc at present.
dagjson.Marshal(basicnode.NewString(string(cn)),json.NewEncoder(&buf,json.EncodeOptions{}),false)// FIXME this would be a lot less irritating if we had more plumbing access to the json encoding -- we want to encode exactly one string into a buffer, it literally can't error.
tab.keySize[cn]=buf.Len()// FIXME this is ignoring charsets, renderable glyphs, etc at present.
}
}
...
...
@@ -299,7 +299,7 @@ func marshal(ctx *state, n ipld.Node, w io.Writer) error {