All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.moaxcp.x11client.protocol.XRequest Maven / Gradle / Ivy

There is a newer version: 0.18.2
Show newest version
package com.github.moaxcp.x11client.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 offset, X11Output out) throws IOException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy