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

Byte array support #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ruigouveiamaciel
Copy link

Goal of this PR

Add support for FiveM's custom MsgPack handling of byte arrays.

How This PR Achieves the Goal

Implemented the missing serializer and deserializer for byte arrays.

Issues Fixed

Fixes FiveM Issue #2571

@ruigouveiamaciel ruigouveiamaciel changed the title Byte array serialization and deserialization Byte array support Jun 9, 2024
@ruigouveiamaciel
Copy link
Author

Additionally to this PR, it would be nice to add a proper deserialization method into CitizenFX.MsgPack, the current MsgPack implementation provides a public method to serialize data:

CitizenFX.MsgPack.MsgPackSerializer.SerializeToByteArray(object value)

but it doesn't provide a public method to deserialize data. I don't know how to implement that myself otherwise I would update this PR to include it.

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.

[MonoV2] Event listeners with a byte[] as a parameter fail to register
1 participant