MarshalTo encodes this Int to the given Writer.
(w io.Writer)
| 348 | |
| 349 | // MarshalTo encodes this Int to the given Writer. |
| 350 | func (i *Int) MarshalTo(w io.Writer) (int, error) { |
| 351 | return marshalling.ScalarMarshalTo(i, w) |
| 352 | } |
| 353 | |
| 354 | // UnmarshalFrom tries to decode an Int from the given Reader. |
| 355 | func (i *Int) UnmarshalFrom(r io.Reader) (int, error) { |