Add CompositeByteBuf.numComponents()

This commit is contained in:
Trustin Lee 2012-06-24 22:14:17 +09:00
parent 217f8ce1fd
commit c77af32142

View File

@ -165,6 +165,10 @@ public class CompositeByteBuf extends AbstractByteBuf {
return indices[components.length]; return indices[components.length];
} }
public int numComponents() {
return components.length;
}
@Override @Override
public byte getByte(int index) { public byte getByte(int index) {
int componentId = componentId(index); int componentId = componentId(index);