You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Julien Vermillard (JIRA)" <ji...@apache.org> on 2005/04/22 14:47:23 UTC
[jira] Commented: (DIRMINA-17) ByteBuffer.wrap(byte[])
[ http://issues.apache.org/jira/browse/DIRMINA-17?page=comments#action_63484 ]
Julien Vermillard commented on DIRMINA-17:
------------------------------------------
the code to add :
/**
* Wraps the specified byte array into MINA buffer.
* {@link java.nio.ByteBuffer#wrap(byte[])}
*/
public static ByteBuffer wrap( byte[]array )
{
return wrap(java.nio.ByteBuffer.wrap(array));
}
/**
* Wraps the specified byte array into MINA buffer.
* {@link java.nio.ByteBuffer#wrap(byte[], int, int)}
*/
public static ByteBuffer wrap(byte[] array,
int offset, int length)
{
return wrap(java.nio.ByteBuffer.wrap(array,offset,length));
}
> ByteBuffer.wrap(byte[])
> -----------------------
>
> Key: DIRMINA-17
> URL: http://issues.apache.org/jira/browse/DIRMINA-17
> Project: Directory MINA
> Type: Improvement
> Environment: the Mina ByteBuffer class don't implements the two static wrap method of java.nio.ByteBuffer :
> static ByteBuffer wrap(byte[] array)
> Wraps a byte array into a buffer.
> static ByteBuffer wrap(byte[] array, int offset, int length)
> Wraps a byte array into a buffer.
> Reporter: Julien Vermillard
> Assignee: Trustin Lee
> Priority: Trivial
>
> I'm used to to use it a lot :)
--
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