2013-05-15 20 views

回答

0

您可以使用容量-1(因爲它是基於0的)來獲取channelBuffer中的字節數。

ChannelBuffer buffer = ...; 
a = buffer.capacity() - 1;