Note that the buffer may be larger than the actually used portion.
myKV.getBuffer().length gives you the length of the buffer (allocated array)
myKV.getLength() gives you the length of the USED buffer (less than or
equal to the previous)
On Wed, Sep 25, 2013 at 2:06 AM, Kim Chew <[EMAIL PROTECTED]> wrote:
> I have a "strange" situation that I can't wrap my head around it. Say, for
> example, I have an KeyValue instance, shouldn't
> myKV.getLength() == myKV.getBuffer().length ?
> Given that, "getLength()" returns "Length of bytes this KeyValue occupies
> in getBuffer()<
> In my case the value returned by "myKV.getBuffer().length" is greater than
> "myKV.getLength()". What possibly went wrong?