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

enh: Simplify cpp core type buffer protocol read and write #630

Merged
merged 4 commits into from
May 14, 2024

Conversation

piiertho
Copy link
Member

@piiertho piiertho commented May 11, 2024

This simplify cpp read and write buffer protocol for core types.
This reinterprets byte buffer to core type to avoid multiple calls to get each primitives.
This needs test on all platforms to be sure we don't have memory layout troubles, even if we shouldn't as all core types are perfectly aligned.

@piiertho piiertho requested review from chippmann and CedNaru May 11, 2024 08:32
@piiertho piiertho force-pushed the enhancement/simplify-kotlin-to-cpp-core-type-read branch from 14fabdd to c178302 Compare May 11, 2024 08:33
CedNaru
CedNaru previously approved these changes May 11, 2024
CedNaru
CedNaru previously approved these changes May 11, 2024
chippmann
chippmann previously approved these changes May 12, 2024
Copy link
Contributor

@chippmann chippmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested on Linux editor and linux export templates

@piiertho piiertho dismissed stale reviews from chippmann and CedNaru via 2f9e5d2 May 13, 2024 18:24
@piiertho piiertho force-pushed the enhancement/simplify-kotlin-to-cpp-core-type-read branch from 6dadf0c to 2f9e5d2 Compare May 13, 2024 18:24
@piiertho piiertho changed the title enh: Simplify kotlin to cpp core type protocol reading enh: Simplify cpp core type protocol read and write May 13, 2024
@piiertho piiertho force-pushed the enhancement/simplify-kotlin-to-cpp-core-type-read branch from 2f9e5d2 to 3853053 Compare May 13, 2024 18:26
@piiertho piiertho changed the title enh: Simplify cpp core type protocol read and write enh: Simplify cpp core type buffer protocol read and write May 13, 2024
@piiertho piiertho requested review from chippmann and CedNaru May 13, 2024 18:30
@CedNaru
Copy link
Member

CedNaru commented May 13, 2024

Test on Android

@piiertho
Copy link
Member Author

Tested on iOS

@piiertho piiertho merged commit f92ff71 into master May 14, 2024
45 checks passed
@piiertho piiertho deleted the enhancement/simplify-kotlin-to-cpp-core-type-read branch May 14, 2024 06:17
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.

3 participants