func (mb *MetricBlock) Unmarshal(src []byte) ([]byte, error) {
	if mb.Block == nil {
		logger.Panicf("BUG: MetricBlock.Block must be non-nil when calling Unmarshal!")
	} else {
		mb.Block.Reset()
	}
	tail, mn, err := encoding.UnmarshalBytes(src)
	if err != nil {
		return tail, fmt.Errorf("cannot unmarshal MetricName: %s", err)
	}
	mb.MetricName = append(mb.MetricName[:0], mn...)
	src = tail

	return UnmarshalBlock(mb.Block, src)
}
// Unmarshal unmarshals MetricBlock from src
Unmarshal unmarshals MetricBlock from src
// Unmarshal unmarshals MetricBlock from src
func (mb *MetricBlock) Unmarshal(src []byte) ([]byte, error) {
	if mb.Block == nil {
		logger.Panicf("BUG: MetricBlock.Block must be non-nil when calling Unmarshal!")
	} else {
		mb.Block.Reset()
	}
	tail, mn, err := encoding.UnmarshalBytes(src)
	if err != nil {
		return tail, fmt.Errorf("cannot unmarshal MetricName: %s", err)
	}
	mb.MetricName = append(mb.MetricName[:0], mn...)
	src = tail
	return UnmarshalBlock(mb.Block, src)
}
func ( mb * MetricBlock ) Unmarshal ( src [ ] byte ) ( [ ] byte , error ) { if mb . Block == nil { logger . Panicf ( " " ) } else { mb . Block . Reset ( ) } tail , mn , err := encoding . UnmarshalBytes ( src ) if err != nil { return tail , fmt . Errorf ( " " , err ) } mb . MetricName = append ( mb . MetricName [ : 0 ] , mn ... ) src = tail return UnmarshalBlock ( mb . Block , src ) }
Unmarshal unmarshals MetricBlock from src
Unmarshal unmarshals MetricBlock from src