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

Method Encode

deb/local.go:68–75  ·  view source on GitHub ↗

Encode does msgpack encoding of LocalRepo

()

Source from the content-addressed store, hash-verified

66
67// Encode does msgpack encoding of LocalRepo
68func (repo *LocalRepo) Encode() []byte {
69 var buf bytes.Buffer
70
71 encoder := codec.NewEncoder(&buf, &codec.MsgpackHandle{})
72 _ = encoder.Encode(repo)
73
74 return buf.Bytes()
75}
76
77// Decode decodes msgpack representation into LocalRepo
78func (repo *LocalRepo) Decode(input []byte) error {

Callers 14

ClearSignMethod · 0.45
TestEncodeDecodeMethod · 0.45
TestEncodeDecodeMethod · 0.45
TestLoadPre0_6Method · 0.45
UpdateMethod · 0.45
loadContentsMethod · 0.45
UpdateInTransactionMethod · 0.45
UpdateMethod · 0.45
TestEncodeDecodeMethod · 0.45
TestEncodeDecodeMethod · 0.45

Calls

no outgoing calls

Tested by 9

TestEncodeDecodeMethod · 0.36
TestEncodeDecodeMethod · 0.36
TestLoadPre0_6Method · 0.36
TestEncodeDecodeMethod · 0.36
TestEncodeDecodeMethod · 0.36
xmlMarshalFunction · 0.36