Re: JavaXPCOM: How to handle unsigned 8-bit values?
Michal Ceresna <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.java |
|---|---|
| Message-ID | <200704251125.49539.michal.ceresna__27917.1751848937$1177493455$gmane$org@gmail.com> |
On Tuesday 24 April 2007, Javier Pedemonte wrote: > Hmm, that is an interesting idea. So any stand-alone 'octet' or > 'PRUint8' values would get promoted to a short, but arrays would become > 'byte[]'. I'll have to think about that. Michal, what's your take on > this? yes, makes sense to do it only for arrays. Did not find any standalone usage of 'octet'. For usages of 'PRUint8' it makes sense: nsIAccessible.idl: AString getActionName(in PRUint8 index); nsIAccessible.idl: void doAction(in PRUint8 index); nsIBidiKeyboard.idl: void setLangFromBidiLevel(in PRUint8 aLevel); nsIBinaryOutputStream.idl: void write8(in PRUint8 aByte); nsIGenericInterfaceInfoSet.idl: in PRUint16 aParent, in PRUint8 aFlags, nsIScriptableInterfaceInfo.idl: nsIScriptableParamInfo getParam(in PRUint8 idx); nsIVariant.idl: void setAsInt8(in PRUint8 aValue); nsIVariant.idl: void setAsUint8(in PRUint8 aValue); regards, Michal