Skip to content

Provide a way to read multiple bytes at once synchronously #39057

Open
@nex3

Description

@nex3

Currently, dart:io only makes it possible to synchronously read from a RandomAccessFile or Stdin one byte at a time (or line-by-line, but that just calls readByteSync() internally). In cases where we know how much data we want, it would be nice to have a Uint8List readBytes(int length) method to read exactly that much data without having to ultimately call the C read() function over and over again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.customer-dart-sasslibrary-iotype-enhancementA request for a change that isn't a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions