Skip to content
This repository has been archived by the owner on Feb 8, 2022. It is now read-only.

Record serialization refinement #40

Merged
merged 2 commits into from
Jun 15, 2016
Merged

Conversation

jhugard
Copy link
Collaborator

@jhugard jhugard commented Jun 15, 2016

Refinement to #38, F# Record Serialization.

Previous PR #39 exposed to client a set of non-specific names for functions to serialize and deserialize data.

Serializer.serializeTo (for ZeroCopyBuffer)
Serializer.serialize (for ArraySegment)
Serializer.deserializerFrom (for ZeroCopyBuffer)
Serializer.deserialize (for ArraySegment)

This PR refines those calls and names them according to the following pattern:

Serialize.toZeroCopyBuffer (with alias Serialize.toZcb)
Serialize.toZeroCopyBufferLengthDelimited (with alias Serialize.toZcbLD)
Serialize.toArraySegment
Serialize.toArray
Deserialize.fromZeroCopyBuffer (alias fromZcb)
Deserialize.fromZeroCopyBufferLengthDelimited (alias fromZcbLD)
Deserialize.fromArraySegment
Deserialize.fromArray
Etc.

@jhugard
Copy link
Collaborator Author

jhugard commented Jun 15, 2016

Another benefit is that a serializable record definition only needs to open one module Froto.Serialization.Encoding and client code using such a record only needs to open one module Froto.Serialization !!!

@jhugard jhugard merged commit 1fe8e09 into master Jun 15, 2016
@jhugard jhugard deleted the record-serialization-refinement branch June 15, 2016 07:16
@jhugard jhugard mentioned this pull request Jun 15, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant