/FFDataWrapper

Wrapper for data or string objects. Uses a custom buffer for storage. Allows the user to specify encoding and decoding functions which are used to convert to stored representation and back.

Primary LanguageSwiftMIT LicenseMIT

FFDataWrapper

FFDataWrapper is a struct which wraps a piece of data and provides some custom internal representation for it. Conversions between original and internal representations can be specified with encoder and decoder closures.

How to Install

Cocoapods

To use with cocoapods, add the following line to your Podfile:

pod 'FFDataWrapper', '~> 1.6'

Carthage

To use with Carthage, add the following line to your Cartfile:

github "flockoffiles/FFDataWrapper" ~> 1.6

How to Use

See FFDataWrapper.swift and FFDataWrapper+Initialization.swift for possible initializers.