This reverts commit 8cfc64fa1d as it may cause problem if a CompositeByteBuf has more then 1024 components.
8cfc64fa1d