Updatable
public protocol Updatable
A protocol for calculations that can be updated with incremental data buffers.
-
Status of the calculation.
Declaration
Swift
var status: Status { get }
-
Low-level update routine. Updates the calculation with the contents of a data buffer.
Declaration
Swift
func update(from buffer: UnsafeRawPointer, byteCount: size_t) -> Self?
Parameters
buffer
Pointer to the data buffer
byteCount
Length of the buffer in bytes
Return Value
Self
if no error for optional chaining, nil otherwise -
update(data:
Extension method) Updates the current calculation with data contained in an
NSData
object.Declaration
Swift
public func update(data: NSData) -> Self?
Parameters
data
The
NSData
objectReturn Value
Optional
Self
or nil -
update(data:
Extension method) Updates the current calculation with data contained in an
Data
object.Declaration
Swift
public func update(data: Data) -> Self?
Return Value
Optional
Self
or nil -
update(byteArray:
Extension method) Updates the current calculation with data contained in a byte array.
Declaration
Swift
public func update(byteArray: [UInt8]) -> Self?
Parameters
byteArray
The byte array
Return Value
Optional
Self
or nil -
update(string:
Extension method) Updates the current calculation with data contained in a String. The corresponding data will be generated using UTF8 encoding.
Declaration
Swift
public func update(string: String) -> Self?
Parameters
string
The string of data
Return Value
Optional
Self
or nil