Skip to content

[Swift] Flexbuffers native swift port #8577

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

mustiikhalil
Copy link
Collaborator

The following PR brings the basic port of flexbuffers, that allows the user to read and write flexbuffer objects and covert them into JSON if needed.

The current implementation supports the following

  • Writing most objects into the buffer, Maps, vectors, strings, blob, and primitive types
  • Reading most objects into the buffer, Maps, vectors, strings, blob, and primitive types
  • Currently, if an offset/object cant be read we default to a swift
    nil instead of the default Flexbuffers 'null' with all values.

What's missing:

  • Verifier which will follow in a different PR

This is the offical port for FlexBuffers within
swift, and it introcudes a Common Module where code
is shared between flatbuffers and flexbuffers.

Writing most supported values like maps, vectors,
nil and scalars into a flexbuffer buffer. And includes
tests to verify that its similar to cpp
Implementing reading from a flexbuffer, enabling
most of the buffers features, like most types, maps, vectors,
typedvectors, and fixedtypedvectors.

Currently, if an offset/object cant be read we default to a swift
nil instead of the default flexbuffers 'null' with all values.
Address warnings within the library
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant