Functions
The following functions are available globally.
-
Undocumented
Declaration
Swift
public func <--- (to: CodingKey, from: String) -> SmartKeyTransformer
-
Undocumented
Declaration
Swift
public func <--- (to: CodingKey, from: [String]) -> SmartKeyTransformer
-
Undocumented
Declaration
Swift
public func <--- (location: CodingKey, tranformer: any ValueTransformable) -> SmartValueTransformer
-
Write a UInt16 to the buffer. It fills the 2 array “slots” of the UInt8 array.
Declaration
Swift
public func writeUint16(_ buffer: inout [UInt8], offset: Int, value: UInt16)
Parameters
buffer
is the UInt8 array (pointer) to write the value too.
offset
is the offset index to start the write from (e.g. buffer[0], buffer[1], etc).
-
Write a UInt32 to the buffer. It fills the 4 array “slots” of the UInt8 array.
Declaration
Swift
public func writeUint32(_ buffer: inout [UInt8], offset: Int, value: UInt32)
Parameters
buffer
is the UInt8 array (pointer) to write the value too.
offset
is the offset index to start the write from (e.g. buffer[0], buffer[1], etc).
-
Write a UInt64 to the buffer. It fills the 8 array “slots” of the UInt8 array.
Declaration
Swift
public func writeUint64(_ buffer: inout [UInt8], offset: Int, value: UInt64)
Parameters
buffer
is the UInt8 array (pointer) to write the value too.
offset
is the offset index to start the write from (e.g. buffer[0], buffer[1], etc).