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

Expose java_string_create(JNIEnv *, const char *, size_t) publicly. #2

Merged

Conversation

JonathanLennox
Copy link
Contributor

I'm JNI-bridging a library (Abseil, used in WebRTC) that has a type (StringView) with non-NUL-terminated C strings, so this function is useful as part of the public API, and I don't see any reason it shouldn't be exposed.

@gershnik
Copy link
Owner

gershnik commented May 3, 2024

Makes sense. There probably should just be an std::string_view taking function but this would be a breaking change. Maybe in next major release.

@gershnik gershnik merged commit 8528b15 into gershnik:master May 3, 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