Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create an untyped API that works on [u8] slices #36

Closed
elBoberido opened this issue Jun 28, 2022 · 1 comment · Fixed by #58
Closed

Create an untyped API that works on [u8] slices #36

elBoberido opened this issue Jun 28, 2022 · 1 comment · Fixed by #58
Labels
enhancement New feature or request

Comments

@elBoberido
Copy link
Member

Brief feature description

Create an untyped API that works on [u8] slices.

Detailed information

Add allocates method to the publisher impl like

pub fn allocate(length: usize) -> SampleMut<[u8]> {}

pub fn allocate_aligned(length: usize, alignment: usize) -> SampleMut<[u8]> {}

The subscriber shall also be able to work with slices.

This should enable us to expose &mut [u8] and have a nice compatibility with the bytes::BufMut trait from the bytes crate

@elBoberido elBoberido added the enhancement New feature or request label Jun 28, 2022
@elBoberido
Copy link
Member Author

@neilisaac this will not be part of v0.1 but I plan to have this as soon as possible in v0.2

elBoberido added a commit that referenced this issue Jul 15, 2022
@elBoberido elBoberido mentioned this issue Jul 15, 2022
14 tasks
elBoberido added a commit that referenced this issue Jul 15, 2022
elBoberido added a commit that referenced this issue Jul 15, 2022
elBoberido added a commit that referenced this issue Jul 15, 2022
elBoberido added a commit that referenced this issue Jul 15, 2022
elBoberido added a commit that referenced this issue Jul 15, 2022
elBoberido added a commit that referenced this issue Jul 17, 2022
elBoberido added a commit that referenced this issue Jul 17, 2022
@elBoberido elBoberido mentioned this issue Jul 22, 2022
14 tasks
elBoberido added a commit that referenced this issue Jul 22, 2022
elBoberido added a commit that referenced this issue Jul 22, 2022
elBoberido added a commit that referenced this issue Jul 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant