Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Support for deserializing into existing objects #107

Copy link
Copy link
Open
@westclif

Description

@westclif
Issue body actions

I would love to have support for all formatters to actually deserialize their data into an already existing object if its provided as an additional reference parameter. (if this parameter is null, we could fall back to the current implementation to create the (T)object)

This would additionally help the unity3d implementation (in case you want to serialize unity intern classes / monobehaviors) in a setup there you want to deserialize the data into an already existing object.

This could also help to reduce memory allocations as the data could be restored into already existing field / classes of the provided object.

Something like that? -->

public interface IMessagePackFormatter<T> { bool Deserialize(byte[] bytes, int offset, IFormatterResolver formatterResolver, ref T @object, out int readSize) }

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.