proxy progress

This commit is contained in:
rusefi 2020-07-08 21:18:54 -04:00
parent bc0a457e14
commit f14ca0cd7a
2 changed files with 11 additions and 0 deletions

View File

@ -117,6 +117,12 @@ public class IncomingDataBuffer {
}
}
public int getByte() throws EOFException {
synchronized (cbb) {
return cbb.getByte();
}
}
public int getShort() throws EOFException {
synchronized (cbb) {
return cbb.getShort();

View File

@ -178,6 +178,11 @@ abstract public class ByteBuffer {
return (b0 | (b1 << 8));
}
public int getByte() throws EOFException {
int b0 = get() & 255;
return b0;
}
/**
* Puts a little-endian 32-bit integer into the buffer.
*