MCPcopy
hub / github.com/nats-io/nats.go / Decode

Method Decode

encoders/builtin/gob_enc.go:47–51  ·  view source on GitHub ↗

Decode Deprecated: Encoded connections are no longer supported.

(subject string, data []byte, vPtr any)

Source from the content-addressed store, hash-verified

45//
46// Deprecated: Encoded connections are no longer supported.
47func (ge *GobEncoder) Decode(subject string, data []byte, vPtr any) (err error) {
48 dec := gob.NewDecoder(bytes.NewBuffer(data))
49 err = dec.Decode(vPtr)
50 return
51}

Callers

nothing calls this directly

Calls 1

DecodeMethod · 0.65

Tested by

no test coverage detected