MCPcopy Create free account
hub / github.com/koding/kite / MarshalJSON

Method MarshalJSON

dnode/partial.go:17–19  ·  view source on GitHub ↗

MarshalJSON returns the raw bytes of the Partial.

()

Source from the content-addressed store, hash-verified

15
16// MarshalJSON returns the raw bytes of the Partial.
17func (p *Partial) MarshalJSON() ([]byte, error) {
18 return p.Raw, nil
19}
20
21// UnmarshalJSON puts the data into Partial.Raw.
22func (p *Partial) UnmarshalJSON(data []byte) error {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected