MCPcopy Create free account
hub / github.com/cloudreve/cloudreve / Encode

Method Encode

pkg/hashid/hash.go:58–64  ·  view source on GitHub ↗
(v []int)

Source from the content-addressed store, hash-verified

56}
57
58func (e *hashEncoder) Encode(v []int) (string, error) {
59 id, err := e.h.Encode(v)
60 if err != nil {
61 return "", err
62 }
63 return id, nil
64}
65
66func (e *hashEncoder) Decode(raw string, t int) (int, error) {
67 res, err := e.h.DecodeWithError(raw)

Callers

nothing calls this directly

Calls 1

EncodeMethod · 0.65

Tested by

no test coverage detected