In my XPCOM
component, I must use an single-parameter "byte array" , because I
must reproduce an existent COM interface whose methods use managed
arrays (sngle-parameter arrays are present on those
interfaces).
The XPIDL language
defines that, for conventional arrays, an extra parameter indicating the
array length should be used, and this is a problem for me.
Exemple:
In XPIDL I can
define:
void BinaryStringToByteArray ( in string BinaryString, out unsigned long
length, [array, size_is (length), retval] out octet data
);
but I need
this:
byte[] BinaryStringToByteArray ( in string
BinaryString );
I need to use a
byte[] compatible with Java and _javascript_ native byte
arrays.
Currently the only
solution I found is to use the wrappedJSObject property of an _javascript_ defined
component, but this does only work if the XPCom client is _javascript_
too...
Any ideas
?
------
Murilo Perrone
CertiSign
Murilo Perrone
CertiSign
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ dev-tech-xpcom mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-xpcom
