示例#1
0
func (e *ClickEvent) read(r *parcel.Reader) error {
	id, err := r.ReadInt32()
	if err != nil {
		return err
	}
	e.Id = int(id)
	return nil
}
示例#2
0
func (e *LifecycleEvent) read(r *parcel.Reader) error {
	v, err := r.ReadInt32()
	if err != nil {
		return err
	}
	e.IsActivity = (v != 0)
	e.PkgName, err = r.ReadString()
	if err != nil {
		return err
	}
	e.Event, err = r.ReadString()
	if err != nil {
		return err
	}
	return nil
}