@Override
	public byte[] toByteArray()
	{
		final ByteArrayOutputStream os = new ByteArrayOutputStream();
		os.write(mc);
		writeAddInfo(os);
		setCtrlPriority();
		os.write(ctrl1);
		os.write(ctrl2);
		byte[] buf = source.toByteArray();
		os.write(buf, 0, buf.length);
		buf = dst.toByteArray();
		os.write(buf, 0, buf.length);
		writePayload(os);
		return os.toByteArray();
	}
@ Override public byte [ ] toByteArray ( ) { final ByteArrayOutputStream os = new ByteArrayOutputStream ( ) ; os . write ( mc ) ; writeAddInfo ( os ) ; setCtrlPriority ( ) ; os . write ( ctrl1 ) ; os . write ( ctrl2 ) ; byte [ ] buf = source . toByteArray ( ) ; os . write ( buf , 0 , buf . length ) ; buf = dst . toByteArray ( ) ; os . write ( buf , 0 , buf . length ) ; writePayload ( os ) ; return os . toByteArray ( ) ; }
/* (non-Javadoc)
@see tuwien.auto.calimero.cemi.CEMI#toByteArray()