Skip to content

Commit

Permalink
Merge pull request #311 from jwfx/master
Browse files Browse the repository at this point in the history
Fix float array serialization
  • Loading branch information
xinchen10 authored Sep 19, 2018
2 parents 782373d + abf39da commit 9a8aa1c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Types/Encoder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ internal static void Initialize()
// 10: float
new Serializer()
{
Type = typeof(float),
Encoder = delegate(ByteBuffer b, object o, bool s) { WriteFloat(b, (float)o); },
Decoder = delegate(ByteBuffer b, byte c) { return ReadFloat(b, c); }
},
Expand Down

0 comments on commit 9a8aa1c

Please sign in to comment.