private int readIntValue()

in serialization/src/main/java/com/twitter/serial/stream/bytebuffer/ByteBufferSerializerInput.java [232:246]


    private int readIntValue(byte subtype) throws IOException {
        try {
            if (subtype == ByteBufferSerializerDefs.SUBTYPE_DEFAULT) {
                return 0;
            } else if (subtype == ByteBufferSerializerDefs.SUBTYPE_BYTE) {
                return mByteBuffer.get() & 0xFF;
            } else if (subtype == ByteBufferSerializerDefs.SUBTYPE_SHORT) {
                return mByteBuffer.getShort() & 0xFFFF;
            } else {
                return mByteBuffer.getInt();
            }
        } catch (BufferUnderflowException ignore) {
            throw new EOFException();
        }
    }