Skip to content

Add generic standard-stream byte I/O and byte-range string append overloads to Core. - #84

Merged
M-Fatah merged 9 commits into
mainfrom
core-platform-string-new-api
Sep 30, 2026
Merged

M-Fatah merged 9 commits into
mainfrom
core-platform-string-new-api

Conversation

@M-Fatah

@M-Fatah M-Fatah commented Sep 30, 2026

Copy link
Copy Markdown
Owner

Adds generic standard-stream byte I/O and byte-range string append overloads to Core.

  • Add platform_stdin_read and platform_stdout_write across Windows, Linux, macOS, iOS, and Android.
  • Return U64 byte counts, with U64_MAX for failures. Null buffers and zero-size requests are no-ops; reads return zero at EOF.
  • Support partial transfers and cap requests to OS-supported sizes.
  • Retry interrupted POSIX operations and handle closed output pipes without changing the process-wide SIGPIPE handler.
  • Add string_append overloads for const char * with a byte count and Slice<const char>. Preserve embedded nulls and maintain the destination terminator.
  • Update documentation and add byte-range append coverage.

@M-Fatah M-Fatah self-assigned this Sep 30, 2026
@M-Fatah M-Fatah added the feature New feature or request. label Sep 30, 2026
@M-Fatah M-Fatah changed the title Core platform string new api Add generic standard-stream byte I/O and byte-range string append overloads to Core. Sep 30, 2026
@M-Fatah
M-Fatah merged commit 9916d16 into main Sep 30, 2026
10 checks passed
@M-Fatah
M-Fatah deleted the core-platform-string-new-api branch September 30, 2026 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant