MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / decodeBinary

Function decodeBinary

pkg/events/redis/codec.go:34–40  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

32}
33
34func decodeBinary(s string) ([]byte, error) {
35 var found bool
36 if s, found = strings.CutSuffix(s, "="); found {
37 s = strings.TrimSuffix(s, "=")
38 }
39 return binaryEncoding.DecodeString(s)
40}
41
42func encodeEventData(evt events.Event) (string, error) {
43 pb, err := events.Proto(evt)

Callers 2

decodeEventDataFunction · 0.85
decodeEventMetaFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected