org.snapscript.studio.agent.event.MessageEnvelope Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of snap-all Show documentation
Show all versions of snap-all Show documentation
Dynamic scripting for the JVM
package org.snapscript.studio.agent.event;
public class MessageEnvelope {
private final byte[] data;
private final int offset;
private final int length;
private final int code;
public MessageEnvelope(int code, byte[] data, int offset, int length) {
this.offset = offset;
this.length = length;
this.data = data;
this.code = code;
}
public int getCode() {
return code;
}
public byte[] getData() {
return data;
}
public int getLength() {
return length;
}
public int getOffset() {
return offset;
}
}