
com.github.moaxcp.x11.protocol.XRequest Maven / Gradle / Ivy
package com.github.moaxcp.x11.protocol;
import java.io.IOException;
public interface XRequest extends XObject {
byte getOpCode();
default int getLength() {
if(getSize() % 4 == 0) {
return getSize() / 4;
}
return (getSize() + 4 - getSize() % 4) / 4;
}
void write(byte majorOpcode, X11Output out) throws IOException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy