// NewStructAR (AutoRoot): experimental Root setting: assumes the
// struct is the root iff it is the first allocation in a segment.
NewStructAR (AutoRoot): experimental Root setting: assumes the
struct is the root iff it is the first allocation in a segment.
// NewStructAR ( AutoRoot ) : experimental Root setting : assumes the // struct is the root iff it is the first allocation in a segment .
func (s *Segment) NewStructAR(datasz, ptrs int) Struct {
	if s.RootDone {
		return s.NewStruct(datasz, ptrs)
	} else {
		s.RootDone = true
		return s.NewRootStruct(datasz, ptrs)
	}
}
func ( s * Segment ) NewStructAR ( datasz , ptrs int ) Struct { if s . RootDone { return s . NewStruct ( datasz , ptrs ) } else { s . RootDone = true return s . NewRootStruct ( datasz , ptrs ) } }
NewStructAR (AutoRoot): experimental Root setting: assumes the
struct is the root iff it is the first allocation in a segment.
NewStructAR ( AutoRoot ) : experimental Root setting : assumes the struct is the root iff it is the first allocation in a segment .