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

void org::freedesktop::dbus::Message::ensureBuffers ( int  num  )  [inline, private]

Ensures there are enough free buffers.

Parameters:
num number of free buffers to create.

Definition at line 242 of file Message.java.

References BUFFERINCREMENT.

Referenced by appendone().

   {
      int increase = num - wiredata.length + bufferuse;
      if (increase > 0) {
         if (increase < BUFFERINCREMENT) increase = BUFFERINCREMENT;
         if (Debug.debug) Debug.print(Debug.VERBOSE, "Resizing "+bufferuse);
         byte[][] temp = new byte[wiredata.length+increase][];
         System.arraycopy(wiredata, 0, temp, 0, wiredata.length);
         wiredata = temp;
      }
   }


Generated by  Doxygen 1.6.0   Back to index