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

Method Encode

deb/publish.go:719–726  ·  view source on GitHub ↗

Encode does msgpack encoding of PublishedRepo

()

Source from the content-addressed store, hash-verified

717
718// Encode does msgpack encoding of PublishedRepo
719func (p *PublishedRepo) Encode() []byte {
720 var buf bytes.Buffer
721
722 encoder := codec.NewEncoder(&buf, &codec.MsgpackHandle{})
723 _ = encoder.Encode(p)
724
725 return buf.Bytes()
726}
727
728// Decode decodes msgpack representation into PublishedRepo
729func (p *PublishedRepo) Decode(input []byte) error {

Callers 1

UpdateMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected