Skip to content
This repository has been archived by the owner on May 3, 2022. It is now read-only.

Bugfix: NativeString length() is now starting with correct offset #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public int size() {

private int length() {
for(int i = 0; i < size(); i++) {
if (getByteBuffer().get(i) == ZERO) {
if (getByteBuffer().get(getOffset() + i) == ZERO) {
return i;
}
}
Expand Down