Skip to content

Reader should return Buffer #4464

Closed
Closed

Description

@Xuanwo

Read API Design:

// args
with_concurrent(16)
with_io_size(4 * 1024 * 1024)
with_io_threshold(1024)

// opendal native
read(range)
read_into(bytes::BufMut, range)
fetch(ranges) -> Vec<Buffer>
fetch_into(ranges, Vec<bytes::BufMut>);
into_stream(range)
into_bytes_stream(range)

// integrate
copy_into(w, range)
pipe_into(s, range)
into_futures_io_async_read(range)

Tasks

Activity

  1. self-assigned this
    on Apr 11, 2024
  2. Xuanwo commented on Apr 16, 2024

    @Xuanwo
    MemberAuthor

    copy_into should be replaced by io::copy and pipe_into should be replaces by StreamExt::forward.

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

Metadata

Metadata

Assignees

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