Mike Ash 7/28/2017

Friday Q&A 2017-07-28: A Binary Coder for Swift

Read Original

This article details the creation of a custom binary coder for Swift, leveraging the Codable protocol for serialization. It explains the approach of writing data sequentially without metadata, discusses the limitations and 'abusive' use of Codable for this purpose, and introduces custom BinaryEncodable/BinaryDecodable protocols to ensure type safety.

Friday Q&A 2017-07-28: A Binary Coder for Swift

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week