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

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

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

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

Definition at line 389 of file Message.java.

Referenced by marshallint().

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


Generated by  Doxygen 1.6.0   Back to index