You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Emmanuel Lecharny (JIRA)" <ji...@apache.org> on 2011/03/14 19:55:29 UTC
[jira] Commented: (DIRMINA-823) Add IoBuffer.putUnsigned* methods
to balance the getUnsigned* methods for completeness
[ https://issues.apache.org/jira/browse/DIRMINA-823?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13006570#comment-13006570 ]
Emmanuel Lecharny commented on DIRMINA-823:
-------------------------------------------
putUnsigned(xxx) methods don't make a lot of sense. There is no specific treatment applied when doing a put(byte), putInt(int) or putLong(long).
So why should we implement the symetric operation when the simple existing operations are already doing the job ?
I mean, yes, it would be candy to the eye, but what kind of added value does it bring ?
> Add IoBuffer.putUnsigned* methods to balance the getUnsigned* methods for completeness
> --------------------------------------------------------------------------------------
>
> Key: DIRMINA-823
> URL: https://issues.apache.org/jira/browse/DIRMINA-823
> Project: MINA
> Issue Type: Improvement
> Components: Core
> Affects Versions: 2.0.2
> Environment: WXP SP3, Sun SDK 1.5
> Reporter: Francis ANDRE
> Priority: Trivial
>
> While unsigned integers types are quite meaningful in networking protocols, Java does not provide unsigned integer primitive types. The IoBuffer.getUnsigned* methods are filling the gap between the need of unsigned integers and the real Java programs.
> But IoBuffer does not provide the correlative IoBuffer.putUnsigned* methods. Thus for completeness, this issue proposes to add those IoBuffer.putUnsigned* methods.
> Rgds
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira