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

Sending buffer data is not working! #11 #12

Closed
wants to merge 2 commits into from

Conversation

DmitryKamynin
Copy link

Hi! An error has been made in your binary data validation function. In the very first line.

When the binary value got into the function, it was checked by obj is! Map && obj is! List, and since obj is TypedData, the function immediately returned the value false, which is why further parsing ended with an error

You can easily reproduce this yourself, just try calling emit with the buffer value and make sure that

I have slightly modified your function and checked it for performance, after that my server has successfully received binary data.

Please review my pool request as soon as possible, thank you

Hi! An error has been made in your binary data validation function. In the very first line.

When the binary value got into the function, it was checked by obj is! Map && obj is! List, and since obj is TypedData, the function immediately returned the value false, which is why further parsing ended with an error

You can easily reproduce this yourself, just try calling emit with the buffer value and make sure that

I have slightly modified your function and checked it for performance, after that my server has successfully received binary data.

Please review my pool request as soon as possible, thank you
@DmitryKamynin
Copy link
Author

Sorry, I accidentally closed the previous pool request

@jumperchen
Copy link
Member

Thanks for your contribution, but is there any test case for this PR?

Corrected the condition for List data type
@DmitryKamynin
Copy link
Author

DmitryKamynin commented Jul 31, 2024

Member

Yes, I did a little test for you, please look at isBinary.test.dart in the archive and run it
I also added another commit with a condition correction.

isBinary.zip

@DmitryKamynin
Copy link
Author

@jumperchen

jumperchen added a commit that referenced this pull request Oct 25, 2024
jumperchen added a commit that referenced this pull request Oct 25, 2024
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