Skip to content
This repository was archived by the owner on Oct 5, 2022. It is now read-only.
This repository was archived by the owner on Oct 5, 2022. It is now read-only.

ARIFetch Fails on String Conversion #7

Description

@helje5

When ARIFetch receives a full read-buffer (4096 bytes), it sometimes stops. This is because the read() might end within an UTF-8 sequence (the UTF-8 decoding will fail and the non-optional withCString will just abort).

Solution: I think we need to check the buffer some bytes backwards for an UTF-8 marker, and then concatenate the results until something valid is constructed.
Or for the demo, we just build one big byte buffer, and then log it.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions