Data
extension Data
-
Convert data to hex string
Declaration
Swift
public var hexValue: String { get } -
Mutate data with adding zero padding to the left until fulfil the block size
Declaration
Swift
public mutating func padZeroLeft(blockSize: Int) -> DataParameters
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
public mutating func padZeroRight(blockSize: Int) -> DataParameters
blockSizeThe size of block.
Return Value
self in
Datatype. -
Add zero padding to the left until fulfil the block size
Declaration
Swift
public func paddingZeroLeft(blockSize: Int) -> DataParameters
blockSizeThe size of block.
Return Value
A new
Datatype with padding zero. -
Add zero padding to the right until fulfil the block size
Declaration
Swift
public func paddingZeroRight(blockSize: Int) -> DataParameters
blockSizeThe size of block.
Return Value
A new
Datatype with padding zero.
View on GitHub
Data Extension Reference