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