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

static void org::freedesktop::dbus::Message::marshallintBig ( long  l,
byte[]  buf,
int  ofs,
int  width 
) [inline, static]

Marshalls an integer of a given width into a buffer using big-endian format.

Parameters:
l The integer to marshall.
buf The buffer to marshall to.
ofs The offset to marshall to.
width The byte-width of the int.

Definition at line 375 of file Message.java.

Referenced by marshallint().

   {
      for (int i = (width-1); i >= 0; i--) {
         buf[i+ofs] = (byte) (l & 0xFF);
         l >>= 8;
      }
   }


Generated by  Doxygen 1.6.0   Back to index