Updateable
public protocol Updateable
A protocol for calculations that can be updated with incremental data buffers.
-
Updates the current calculation with data contained in an
NSData
object.- parameters data: the data buffer
Declaration
Swift
public func update(data: NSData) -> Self?
-
Updates the current calculation with data contained in a Swift array.
- parameters byteArray: the Swift array
Declaration
Swift
public func update(byteArray : [UInt8]) -> Self?
-
Updates the current calculation with data contained in a Swift string. The corresponding data will be generated using UTF8 encoding.
- parameters string: the Swift string
Declaration
Swift
public func update(string: String) -> Self?