MCPcopy Create free account
hub / github.com/IceFireDB/IceFireDB / cmdHVALS

Function cmdHVALS

hashes.go:252–262  ·  view source on GitHub ↗
(m uhaha.Machine, args []string)

Source from the content-addressed store, hash-verified

250
251 return redcon.SimpleInt(len(val)), nil
252}
253
254func cmdHVALS(m uhaha.Machine, args []string) (interface{}, error) {
255 if len(args) != 2 {
256 return nil, uhaha.ErrWrongNumArgs
257 }
258
259 v, err := ldb.HValues([]byte(args[1]))
260 if err != nil {
261 return nil, err
262 }
263 return v, nil
264}
265

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected