(ByteBuf bytes)
| 66 | } |
| 67 | |
| 68 | public int readIndex(ByteBuf bytes) { |
| 69 | switch (this) { |
| 70 | case BYTE: |
| 71 | return bytes.readUnsignedByte(); |
| 72 | case SHORT: |
| 73 | return bytes.readUnsignedShort(); |
| 74 | case MEDIUM: |
| 75 | return bytes.readUnsignedMedium(); |
| 76 | default: |
| 77 | case INT: |
| 78 | return bytes.readInt(); |
| 79 | } |
| 80 | } |
| 81 | } |
no test coverage detected