MCPcopy Create free account
hub / github.com/tdewolff/canvas / GobDecode

Method GobDecode

path.go:162–165  ·  view source on GitHub ↗

GobDecode implements the gob interface.

(b []byte)

Source from the content-addressed store, hash-verified

160
161// GobDecode implements the gob interface.
162func (p *Path) GobDecode(b []byte) error {
163 dec := gob.NewDecoder(bytes.NewReader(b))
164 return dec.Decode(&p.d)
165}
166
167// Empty returns true if p is an empty path or consists of only MoveTos and Closes.
168func (p *Path) Empty() bool {

Callers

nothing calls this directly

Calls 1

DecodeMethod · 0.65

Tested by

no test coverage detected