Skip to content

Conversation

@Keithcat1
Copy link

…to copy data straight into the callback-provided output buffer without any kind of allocation.

…to copy data straight into the callback-provided output buffer without any kind of allocation.
@Timtam
Copy link
Owner

Timtam commented Mar 4, 2022

Mind improving your solution with a fallback in case readinto() is not available, using read() instead in that case? I want to have a as bullet-proof solution as possible here, and some custom implementations might not have readinto-support out of the box, since its a fairly new concept as I understand it.

@Timtam
Copy link
Owner

Timtam commented Mar 7, 2022

newest commit doesn't build anymore:

Bass4Py/bass/stream.pyx:105:40: local variable 'len' referenced before assignment

@Timtam
Copy link
Owner

Timtam commented Mar 8, 2022

Still doesn't build, you're checking hasattr(strm.file, "readinto"), the attribute is called strm._file however. Please test your builds using the provided test suite (there are alot of tests missing still, but i'm doing my best, step by step).

@Timtam
Copy link
Owner

Timtam commented May 3, 2022

Hi there,

as you can see, your latest commit fails with an access violation under Linux, at least with the tests that i've written so far. Can you evaluate if the tests need to be fixed or if there is a race condition that crashes under Linux and needs to be fixed before it can be merged? Thanks!

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.

2 participants