Changeset 71 for oscpack/trunk/osc

Show
Ignore:
Timestamp:
11/20/06 21:37:06 (2 years ago)
Author:
ross
Message:

patch to support SuperCollider? integer address patterns

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • oscpack/trunk/osc/OscReceivedElements.cpp

    r53 r71  
    4343static inline const char* FindStr4End( const char *p ) 
    4444{ 
     45  if( p[0] == '\0' )    // special case for SuperCollider integer address pattern 
     46    return p + 4; 
     47 
    4548    p += 3; 
    4649 
     
    5861    if( p >= end ) 
    5962        return 0; 
     63 
     64  if( p[0] == '\0' )    // special case for SuperCollider integer address pattern 
     65    return p + 4; 
    6066 
    6167    p += 3; 
     
    516522{ 
    517523    Init( bundleElement.Contents(), bundleElement.Size() ); 
     524} 
     525 
     526 
     527bool ReceivedMessage::AddressPatternIsUInt32() const 
     528{ 
     529  return (addressPattern_[0] == '\0'); 
     530} 
     531 
     532 
     533uint32 ReceivedMessage::AddressPatternAsUInt32() const 
     534{ 
     535    return ToUInt32( addressPattern_ ); 
    518536} 
    519537 
  • oscpack/trunk/osc/OscReceivedElements.h

    r70 r71  
    419419 
    420420  // Support for non-standad SuperCollider integer address patterns: 
    421   bool AddressPatternIsUInt32()
    422   uint32 AddressPatternAsUInt32()
     421  bool AddressPatternIsUInt32() const
     422  uint32 AddressPatternAsUInt32() const
    423423 
    424424  unsigned long ArgumentCount() const { return static_cast<unsigned long>(typeTagsEnd_ - typeTagsBegin_); }