GobDecode implements the gob interface.
(b []byte)
| 160 | |
| 161 | // GobDecode implements the gob interface. |
| 162 | func (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. |
| 168 | func (p *Path) Empty() bool { |