Add CompositeByteBuf.numComponents()
This commit is contained in:
parent
217f8ce1fd
commit
c77af32142
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user