Исправление неправильной конструкции Stream при которой поинтеры могли не сместиться при ретранслируемых пакетах
All checks were successful
Build rosetta-wss / build (push) Successful in 1m50s
All checks were successful
Build rosetta-wss / build (push) Successful in 1m50s
This commit is contained in:
@@ -14,6 +14,8 @@ public class Stream {
|
|||||||
|
|
||||||
public Stream(byte[] stream) {
|
public Stream(byte[] stream) {
|
||||||
this.stream = stream;
|
this.stream = stream;
|
||||||
|
this.readPointer = 0;
|
||||||
|
this.writePointer = this.stream.length << 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
public byte[] getStream() {
|
public byte[] getStream() {
|
||||||
@@ -22,6 +24,7 @@ public class Stream {
|
|||||||
|
|
||||||
public void setStream(byte[] stream) {
|
public void setStream(byte[] stream) {
|
||||||
this.stream = stream;
|
this.stream = stream;
|
||||||
|
this.readPointer = 0;
|
||||||
this.writePointer = this.stream.length << 3;
|
this.writePointer = this.stream.length << 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user