Array
extension Array: FlowEncodable where Element: FlowEncodable
public extension Array where Element == Flow.Cadence.FValue
public extension Array where Element == Flow.Argument
public extension Array where Element == UInt8
-
Declaration
Swift
public func toFlowArgument() -> Flow.Argument?
-
Declaration
Swift
func toArguments() -> [Flow.Argument]
-
Declaration
Swift
func toValue() -> [Flow.Cadence.FValue]
-
Convert to
DatatypeDeclaration
Swift
var data: Data { get } -
Convert bytes to hex string
Declaration
Swift
var hexValue: String { get } -
Mutate data with adding zero padding to the left until fulfil the block size
Declaration
Swift
@discardableResult mutating func padZeroLeft(blockSize: Int) -> [UInt8]Parameters
blockSizeThe size of block.
Return Value
self in
Datatype. -
Mutate data with adding zero padding to the right until fulfil the block size
Declaration
Swift
@discardableResult mutating func padZeroRight(blockSize: Int) -> [UInt8]Parameters
blockSizeThe size of block.
Return Value
self in
Datatype. -
Add zero padding to the left until fulfil the block size
Declaration
Swift
func paddingZeroLeft(blockSize: Int) -> [UInt8]Parameters
blockSizeThe size of block.
Return Value
A new
[UInt8]type with padding zero. -
Add zero padding to the right until fulfil the block size
Declaration
Swift
func paddingZeroRight(blockSize: Int) -> [UInt8]Parameters
blockSizeThe size of block.
Return Value
A new
[UInt8]type with padding zero.
View on GitHub