MCPcopy Create free account
hub / github.com/aptly-dev/aptly / Encode

Method Encode

deb/remote.go:803–810  ·  view source on GitHub ↗

Encode does msgpack encoding of RemoteRepo

()

Source from the content-addressed store, hash-verified

801
802// Encode does msgpack encoding of RemoteRepo
803func (repo *RemoteRepo) Encode() []byte {
804 var buf bytes.Buffer
805
806 encoder := codec.NewEncoder(&buf, &codec.MsgpackHandle{})
807 _ = encoder.Encode(repo)
808
809 return buf.Bytes()
810}
811
812// Decode decodes msgpack representation into RemoteRepo
813func (repo *RemoteRepo) Decode(input []byte) error {

Callers 1

UpdateMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected