That looks like just what I'm after, thanks!

Cheers,
Colin

On 07/10/06, Robert Greig <[EMAIL PROTECTED]> wrote:
Could you do something like this:

int delta = src.remaining() - dest.remaining();
if (delta > 0)
{
    src.limit(src.limit() - delta);
}
dest.put(src);

I'm not sure if your use case means you need to reset the limit back
to its original value - if you do then it's obviously easy to do.

RG

Reply via email to