(o interface{})
| 106 | } |
| 107 | |
| 108 | func (p *ptr) Assign(o interface{}) bool { |
| 109 | if o, ok := o.(Pointer); ok { |
| 110 | *p = ptr{o.Address(), p.elTy} |
| 111 | return true |
| 112 | } |
| 113 | return false |
| 114 | } |
| 115 | |
| 116 | // Encode encodes this object to the encoder. |
| 117 | func (p ptr) Encode(e *Encoder) { e.Pointer(p.addr) } |