Implement the Serializer.

This commit is contained in:
Cory Benfield committed 2020-07-09 14:53:15 +01:00
1 parent e6e0c68caf
commit cf08d29cb0
15 files changed
+7806 -56

No files matched your search

@@ -142,7 +142,8 @@ extension BareItemDecoder: SingleValueDecodingContainer {
throw StructuredHeaderError.invalidTypeForItem
}
return T(decimal)
// Going via Double is a bit sad. Swift Numerics would help here.
return T(Double(decimal))
}
private func _decodeFixedWidthInteger<T: FixedWidthInteger>(_ type: T.Type) throws -> T {