Add CompositeByteBuf.numComponents()

This commit is contained in:
Trustin Lee 2012-06-24 22:14:17 +09:00
parent 7b2992a95a
commit 1be9bbf62c

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);