Skip to content

Conversation

@rxsto
Copy link
Contributor

@rxsto rxsto commented Jan 12, 2026

When converting a memory segment from libdave to a Java string it seems that sometimes the output is greater than 4096 bytes - in this case it should be fine to assume that the provided memory segment holds a valid null terminated string, so we should be able to read the full segment and convert that to a standard utf8 string.

This change should fix the issue outlined at #17

Please let me know if you require a change to this proposal.

Cheers

@MinnDevelopment
Copy link
Owner

@rxsto you need to run ./gradlew spotlessApply to get the right formatting

@MinnDevelopment MinnDevelopment changed the title Proposal to use full memory segment Handle longer strings in logs Jan 12, 2026
@MinnDevelopment MinnDevelopment merged commit 3a3ef00 into MinnDevelopment:master Jan 12, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants