Logo Search packages:      
Sourcecode: dbus-java version File versions  Download package

int org::freedesktop::dbus::Message::align ( int  current,
byte  type 
) [inline]

Align a counter to the given type.

current The current counter.
type The type to align to.
The new, aligned, counter.

Definition at line 787 of file Message.java.

References getAlignment().

Referenced by extractone().

      if (Debug.debug) Debug.print(Debug.VERBOSE, "aligning to "+(char)type);
      int a = getAlignment(type);
      if (0 == (current%a)) return current;
      return current+(a-(current%a));

Generated by  Doxygen 1.6.0   Back to index