1 Reply Latest reply on Nov 30, 2009 8:23 AM by clebert.suconic

    TimedBuffer creating new direct buffer of size of whole Time

    timfox

      When a flush occurs on the TimedBuffer, I notice it allocates a native buffer of the size of the entire TimedBuffer:

      bufferToFlush = bufferObserver.newBuffer(bufferSize, pos);
      


      Even though only a part of the TimedBuffer might be full.

      Shouldn't it be:

      bufferToFlush = bufferObserver.newBuffer(pos, pos);
      


      (The above seems to work for me)