Add CompositeByteBuf.numComponents()
This commit is contained in:
parent
7b2992a95a
commit
1be9bbf62c
@ -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