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

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

Demarshalls an integer of a given width from a buffer using little-endian format.

buf The buffer to demarshall from.
ofs The offset to demarshall from.
width The byte-width of the int.

Definition at line 334 of file Message.java.

Referenced by demarshallint().

      long l = 0;
      for (int i = (width-1); i >= 0; i--) {
         l <<=8;
         l |= (buf[ofs+i] & 0xFF);
      return l;

Generated by  Doxygen 1.6.0   Back to index