directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Trustin Lee (JIRA)" <>
Subject [jira] Created: (DIRMINA-136) ByteBuffer.sweep()
Date Sat, 03 Dec 2005 01:08:29 GMT

         Key: DIRMINA-136
     Project: Directory MINA
        Type: New Feature
    Reporter: Trustin Lee
    Priority: Minor
     Fix For: 0.9

It is sometimes useful to provide a shortcut for this operation:

buf.fillAndReset( buf.remaining() );

I suggest to add ByteBuffer.sweep() and ByteBuffer.sweep( byte value ) so users can sweep
the old content of the newly allocated buffer if they need to do:

ByteBuffer buf = ByteBuffer.allocate( 16 ).sweep();

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message