You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Trustin Lee (JIRA)" <ji...@apache.org> on 2005/12/03 02:08:29 UTC

[jira] Created: (DIRMINA-136) ByteBuffer.sweep()

ByteBuffer.sweep()
------------------

         Key: DIRMINA-136
         URL: http://issues.apache.org/jira/browse/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.clear();
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:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (DIRMINA-136) ByteBuffer.sweep()

Posted by "Niklas Therning (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/DIRMINA-136?page=all ]
     
Niklas Therning resolved DIRMINA-136:
-------------------------------------

    Resolution: Fixed

> ByteBuffer.sweep()
> ------------------
>
>          Key: DIRMINA-136
>          URL: http://issues.apache.org/jira/browse/DIRMINA-136
>      Project: Directory MINA
>         Type: New Feature
>     Reporter: Trustin Lee
>     Assignee: Niklas Therning
>     Priority: Minor
>      Fix For: 0.9

>
> It is sometimes useful to provide a shortcut for this operation:
> buf.clear();
> 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:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Assigned: (DIRMINA-136) ByteBuffer.sweep()

Posted by "Niklas Therning (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/DIRMINA-136?page=all ]

Niklas Therning reassigned DIRMINA-136:
---------------------------------------

    Assign To: Niklas Therning

> ByteBuffer.sweep()
> ------------------
>
>          Key: DIRMINA-136
>          URL: http://issues.apache.org/jira/browse/DIRMINA-136
>      Project: Directory MINA
>         Type: New Feature
>     Reporter: Trustin Lee
>     Assignee: Niklas Therning
>     Priority: Minor
>      Fix For: 0.9

>
> It is sometimes useful to provide a shortcut for this operation:
> buf.clear();
> 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:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Closed: (DIRMINA-136) ByteBuffer.sweep()

Posted by "Trustin Lee (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/DIRMINA-136?page=all ]
     
Trustin Lee closed DIRMINA-136:
-------------------------------


Looks great!

> ByteBuffer.sweep()
> ------------------
>
>          Key: DIRMINA-136
>          URL: http://issues.apache.org/jira/browse/DIRMINA-136
>      Project: Directory MINA
>         Type: New Feature
>     Reporter: Trustin Lee
>     Assignee: Niklas Therning
>     Priority: Minor
>      Fix For: 0.9

>
> It is sometimes useful to provide a shortcut for this operation:
> buf.clear();
> 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:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira