Home | History | Annotate | Download | only in gob

Lines Matching defs:Encode

26 // Before we encode a message, we reserve space at the head of the
27 // buffer in which to encode its length. This means we can use the
74 // Encode the length.
105 enc.encode(state.b, reflect.ValueOf(info.wire), wireTypeUserInfo)
171 // Encode transmits the data item represented by the empty interface value,
174 func (enc *Encoder) Encode(e interface{}) error {
219 return errors.New("gob: cannot encode nil value")
222 panic("gob: cannot encode nil pointer of type " + value.Type().String())
249 // Encode the object.
250 enc.encode(state.b, value, ut)