We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99b8553 commit 122ab17Copy full SHA for 122ab17
hamt.go
@@ -203,6 +203,12 @@ func (n *Node) Flush(ctx context.Context) error {
203
return nil
204
}
205
206
+// SetRaw sets key k to cbor bytes raw
207
+func (n *Node) SetRaw(ctx context.Context, k string, raw []byte) error {
208
+ d := &cbg.Deferred{Raw: raw}
209
+ return n.modifyValue(ctx, &hashBits{b: hash(k)}, k, d)
210
+}
211
+
212
func (n *Node) Set(ctx context.Context, k string, v interface{}) error {
213
var d *cbg.Deferred
214
0 commit comments