[armedbear-devel] How to declare a jconstructor/jmethod which has array arguments?
Chun Tian (binghe)
binghe.lisp at gmail.com
Tue Sep 14 04:02:00 UTC 2010
Hi, ABCL
I already know how to declare a jconstructor or jmethod which has primitives as arguments:
For example, for java.net.DatagramSocket, I have following declarations which works fine:
(defvar $*int (jclass "int"))
(defvar $*DatagramSocket (jclass "java.net.DatagramSocket"))
(defvar $*InetAddress (jclass "java.net.InetAddress"))
(defvar $%DatagramSocket/2 (jconstructor $*DatagramSocket $*int $*InetAddress))
(defvar $@close/DatagramSocket/0 (jmethod $*DatagramSocket "close"))
...
But how can I declare java.net.DatagramPacket, whose constructor has a byte[] argument:
public DatagramPacket (byte[] buf, int offset, int length)
Just don't know how to represent "byte[]" ...
Regards,
Chun Tian (binghe)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2603 bytes
Desc: not available
URL: <https://mailman.common-lisp.net/pipermail/armedbear-devel/attachments/20100914/1b831f30/attachment.bin>
More information about the armedbear-devel
mailing list