Skip to content
This repository was archived by the owner on Jul 23, 2023. It is now read-only.
This repository was archived by the owner on Jul 23, 2023. It is now read-only.

Streams #1

@sppmacd

Description

@sppmacd
  • Split Reader into Text/BinaryReader and Writer into Text/BinaryWriter
  • Implement:
    • MemoryStream
    • Socket (idk what to do with UDP here)
  • Make writer's encoding not an element of its state (take it as argument where needed instead)
  • TextReader methods:
    • OsErrorOr<Util::UString> read_until(char delim, Encoding e)
    • OsErrorOr<T> read_number<T>() (must read number or throws)
    • OsErrorOr<Util::UString> read_line(Encoding e) => read_until('\n')
    • OsErrorOr<void> ignore(char delim) => read_until(delim)
    • peek with strings

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions