func (g *tgraph) MarshalROOT(w *rbytes.WBuffer) (int, error) {
	if w.Err() != nil {
		return 0, w.Err()
	}

	pos := w.WriteVersion(g.RVersion())

	for _, a := range []rbytes.Marshaler{
		&g.named,
		&rbase.AttLine{},
		&rbase.AttFill{},
		&rbase.AttMarker{},
	} {
		if _, err := a.MarshalROOT(w); err != nil {
			return 0, err
		}
	}

	w.WriteI32(g.npoints)
	{
		w.WriteI8(0)
		w.WriteFastArrayF64(g.x)
		w.WriteI8(0)
		w.WriteFastArrayF64(g.y)
	}

	_ = w.WriteObjectAny(g.funcs)
	_ = w.WriteObjectAny(g.histo)
	{
		w.WriteF64(g.min)
		w.WriteF64(g.max)
	}

	return w.SetByteCount(pos, g.Class())
}
// ROOTMarshaler is the interface implemented by an object that can
// marshal itself to a ROOT buffer
ROOTMarshaler is the interface implemented by an object that can
marshal itself to a ROOT buffer
// ROOTMarshaler is the interface implemented by an object that can // marshal itself to a ROOT buffer
func (g *tgraph) MarshalROOT(w *rbytes.WBuffer) (int, error) {
	if w.Err() != nil {
		return 0, w.Err()
	}
	pos := w.WriteVersion(g.RVersion())
	for _, a := range []rbytes.Marshaler{
		&g.named,
		&rbase.AttLine{},
		&rbase.AttFill{},
		&rbase.AttMarker{},
	} {
		if _, err := a.MarshalROOT(w); err != nil {
			return 0, err
		}
	}
	w.WriteI32(g.npoints)
	{
		w.WriteI8(0)
		w.WriteFastArrayF64(g.x)
		w.WriteI8(0)
		w.WriteFastArrayF64(g.y)
	}
	_ = w.WriteObjectAny(g.funcs)
	_ = w.WriteObjectAny(g.histo)
	{
		w.WriteF64(g.min)
		w.WriteF64(g.max)
	}
	return w.SetByteCount(pos, g.Class())
}
func ( g * tgraph ) MarshalROOT ( w * rbytes . WBuffer ) ( int , error ) { if w . Err ( ) != nil { return 0 , w . Err ( ) } pos := w . WriteVersion ( g . RVersion ( ) ) for _ , a := range [ ] rbytes . Marshaler { & g . named , & rbase . AttLine { } , & rbase . AttFill { } , & rbase . AttMarker { } , } { if _ , err := a . MarshalROOT ( w ) ; err != nil { return 0 , err } } w . WriteI32 ( g . npoints ) { w . WriteI8 ( 0 ) w . WriteFastArrayF64 ( g . x ) w . WriteI8 ( 0 ) w . WriteFastArrayF64 ( g . y ) } _ = w . WriteObjectAny ( g . funcs ) _ = w . WriteObjectAny ( g . histo ) { w . WriteF64 ( g . min ) w . WriteF64 ( g . max ) } return w . SetByteCount ( pos , g . Class ( ) ) }
ROOTMarshaler is the interface implemented by an object that can
marshal itself to a ROOT buffer
ROOTMarshaler is the interface implemented by an object that can marshal itself to a ROOT buffer