ChannelBuffer to byte array
Adam Durana
adam.durana at burningbay.com
Tue Mar 2 12:17:14 EST 2010
Hi,
I'm looking for the most efficient way to get a ChannelBuffer's data
in the form of a byte array. The byte array will be only read from
and not modified. Is the best way to use a ChannelBuffer's readBytes
method to copy the data into an array? Or is there a way that doesn't
involve copying given that I'm not going to be modifying the array?
Thanks,
Adam
More information about the netty-users
mailing list