File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
net.lecousin.core/src/main/java/net/lecousin/framework/io/data Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ public byte getForward(int offset) {
79
79
* to the position of this buffer.
80
80
*/
81
81
public void setPosition (ByteBuffer originalBuffer ) {
82
- originalBuffer .position (currentOffset - arrayOffset );
82
+ originalBuffer .position (originalBuffer . limit () - remaining () );
83
83
}
84
84
85
85
@ Override
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ public CharBuffer toCharBuffer() {
78
78
* to the position of this buffer.
79
79
*/
80
80
public void setPosition (CharBuffer originalBuffer ) {
81
- originalBuffer .position (currentOffset - arrayOffset );
81
+ originalBuffer .position (originalBuffer . limit () - remaining () );
82
82
}
83
83
84
84
@ Override
You can’t perform that action at this time.
0 commit comments