Skip to content

feat(io): I/O API#1

Draft
SpacingBat3 wants to merge 1 commit into
masterfrom
feat/io-api
Draft

feat(io): I/O API#1
SpacingBat3 wants to merge 1 commit into
masterfrom
feat/io-api

Conversation

@SpacingBat3
Copy link
Copy Markdown
Owner

@SpacingBat3 SpacingBat3 commented May 13, 2026

Description

This Pull Request aims to implement an IO API extension, which will allow for convenient stream reading without worry of buffer overflow. This is especially useful when reading or/and parsing unknown length data.

Checklist

  • io_fill – buffer entire streams into vectors.
  • io_readline – read single line (delimited by \n, we might allow to set a custom delimiter in static storage).
  • io_scanf – read with matching to format (safe scanf). Vectors are used in place of char/wchar/... buffers to avoid buffer overflows (e.g in %s).
  • io_sprintf – write to vector with matching to format (safe sprintf). Vectors are used in place of char/wchar/... buffers to avoid buffer overflows.
  • ...more? (check standard C library extension for dynamically allocated data)

Implement `io_readline` and `io_fill` operations and introduce IO API
extension to the library.
@SpacingBat3 SpacingBat3 force-pushed the feat/io-api branch 3 times, most recently from 8d8f10a to 43b2f6c Compare May 18, 2026 14:18
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.

1 participant