java.nio.channels.FileChannel contains some .write methods:
[27] write : int (ByteBuffer)
[28] write : int (ByteBuffer,long)
[29] write : long (ByteBuffer[])
[30] write : long (ByteBuffer[],int,int)
I have an array of ByteBufers, but I can't figure out how to call #29
without it being a reflecting call. Giving a type of #^objects
doesn't seem to help.
(defn foo [#^FileChannel chan, bufs]
(.write chan (to-array bufs)))
gives a reflection warning.
Any ideas?
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en