ReceivedMessage::ReceivedMessage( const ReceivedBundleElement& bundleElement ) : addressPattern_( bundleElement.Contents() ) { // Hack: Copy every osc message on receive. (see commit c2a6464) size = bundleElement.Size(); message = new char [size]; memcpy(message, bundleElement.Contents(), size); addressPattern_ = message; Init( message, size ); }
ReceivedBundle::ReceivedBundle( const ReceivedBundleElement& bundleElement ) : elementCount_( 0 ) { Init( bundleElement.Contents(), bundleElement.Size() ); }
ReceivedMessage::ReceivedMessage( const ReceivedBundleElement& bundleElement ) : addressPattern_( bundleElement.Contents() ) { Init( bundleElement.Contents(), bundleElement.Size() ); }