Skip to content

Generate serializeTo & deserializeFrom for Fw::Serializable types #763

@vincewoo

Description

@vincewoo

For v4.0 in F' we added serializeTo/serializeFrom and deserializeTo/deserializeFrom methods to clarify the direction of serialization. We intend to deprecate the old serialize and deserialize methods in the future, but to decouple the upgrade needed to FPP we have left the legacy methods in place. The F' issue for the serialization clarification is here: nasa/fprime#3781

In general, anything that is a Fw::SerializeBufferBase should be updated as follows:

  1. .serialize() --> buffer.serializeFrom()
  2. .deserialize() --> buffer.deserializeTo()

and anything that is implementing Fw::Serializable should be updated as follows:

  1. .serialize() --> .serializeTo()
  2. .deserialize() --> .deserializeFrom()

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions