proxy progress
This commit is contained in:
parent
bc0a457e14
commit
f14ca0cd7a
|
@ -117,6 +117,12 @@ public class IncomingDataBuffer {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int getByte() throws EOFException {
|
||||||
|
synchronized (cbb) {
|
||||||
|
return cbb.getByte();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public int getShort() throws EOFException {
|
public int getShort() throws EOFException {
|
||||||
synchronized (cbb) {
|
synchronized (cbb) {
|
||||||
return cbb.getShort();
|
return cbb.getShort();
|
||||||
|
|
|
@ -178,6 +178,11 @@ abstract public class ByteBuffer {
|
||||||
return (b0 | (b1 << 8));
|
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.
|
* Puts a little-endian 32-bit integer into the buffer.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue