Changeset 71 for oscpack/trunk/osc
- Timestamp:
- 11/20/06 21:37:06 (2 years ago)
- Files:
-
- oscpack/trunk/osc/OscReceivedElements.cpp (modified) (3 diffs)
- oscpack/trunk/osc/OscReceivedElements.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
oscpack/trunk/osc/OscReceivedElements.cpp
r53 r71 43 43 static inline const char* FindStr4End( const char *p ) 44 44 { 45 if( p[0] == '\0' ) // special case for SuperCollider integer address pattern 46 return p + 4; 47 45 48 p += 3; 46 49 … … 58 61 if( p >= end ) 59 62 return 0; 63 64 if( p[0] == '\0' ) // special case for SuperCollider integer address pattern 65 return p + 4; 60 66 61 67 p += 3; … … 516 522 { 517 523 Init( bundleElement.Contents(), bundleElement.Size() ); 524 } 525 526 527 bool ReceivedMessage::AddressPatternIsUInt32() const 528 { 529 return (addressPattern_[0] == '\0'); 530 } 531 532 533 uint32 ReceivedMessage::AddressPatternAsUInt32() const 534 { 535 return ToUInt32( addressPattern_ ); 518 536 } 519 537 oscpack/trunk/osc/OscReceivedElements.h
r70 r71 419 419 420 420 // Support for non-standad SuperCollider integer address patterns: 421 bool AddressPatternIsUInt32() ;422 uint32 AddressPatternAsUInt32() ;421 bool AddressPatternIsUInt32() const; 422 uint32 AddressPatternAsUInt32() const; 423 423 424 424 unsigned long ArgumentCount() const { return static_cast<unsigned long>(typeTagsEnd_ - typeTagsBegin_); }
