directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Julien Vermillard (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DIRMINA-17) ByteBuffer.wrap(byte[])
Date Fri, 22 Apr 2005 12:47:23 GMT
     [ 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


Mime
View raw message