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

Provide local accessor for bson_t.len #2

Merged
merged 1 commit into from Apr 7, 2019

Conversation

mbroadst
Copy link
Member

@mbroadst mbroadst commented Apr 1, 2019

In Swift 5, bson_t is treated as an OpaquePointer so we no
longer have type information for its fields. This allows us to
retrieve the len field by providing a custom accessor.

Copy link
Contributor

@kmahar kmahar left a comment

Choose a reason for hiding this comment

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

nit about the .gitignore but lgtm!

.gitignore Outdated
@@ -65,3 +65,4 @@ fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots
fastlane/test_output
.vscode
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: newline at end of file

In Swift 5, `bson_t` is treated as an `OpaquePointer` so we no
longer have type information for its fields. This allows us to
retrieve the `len` field by providing a custom accessor.
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.

None yet

3 participants