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