UnsignedByte
open class UnsignedByte : DataValue
DataValue subclass that wraps a value of type unsignedByte.
-
Maximum unsigned byte value.
Declaration
Swift
public static let maxValue: Int -
Wrapped zero value.
Declaration
Swift
public static let zero: UnsignedByte -
Compare two wrapped values for ordering.
Declaration
Swift
open class func compare(_ left: UnsignedByte, _ right: UnsignedByte) -> IntParameters
leftFirst object for comparison.
rightSecond object for comparison.
Return Value
-1 if
left.value < right.value, 0 ifleft.value == right.value, or 1 ifleft.value > right.value. -
The type BasicType.UNSIGNED_BYTE.
Declaration
Swift
override open var dataType: DataType { get } -
Compare two wrapped values for equality.
Declaration
Swift
open class func equal(_ left: UnsignedByte?, _ right: UnsignedByte?) -> BoolParameters
leftFirst object for comparison.
rightSecond object for comparison.
Return Value
trueifleft.value == right.valueor if both arguments arenil, otherwisefalse. -
Declaration
Swift
override open func equals(_ other: AnyObject?) -> BoolParameters
otherThe value to compare with.
Return Value
trueif this object is equal tovalue. -
Hash the wrapped value to a number.
Declaration
Swift
override open func hashCode() -> IntReturn Value
Any value in the range of type
int. -
Wrap an
unsignedBytevalue as an object.Declaration
Swift
open class func of(_ value: Int) -> UnsignedByteParameters
valueValue to be wrapped.
Return Value
The wrapped value.
-
Wrap a nullable
unsignedBytevalue as an object.Declaration
Swift
open class func of(optional value: Int?) -> UnsignedByte?Parameters
valueValue to be wrapped.
Return Value
The wrapped value.
-
Convert a wrapped
unsignedBytevalue to a nullable unsigned byte.Declaration
Swift
open class func optional(_ value: AnyObject?) -> Int?Parameters
valueThe wrapped value.
Return Value
A nullable int.
-
Convert a signed
bytevalue to unsignedint.Declaration
Swift
open class func toInt(_ value: Int) -> IntParameters
valueThe byte value.
Return Value
The byte value, treated as unsigned, then converted to an int value.
-
Convert this data value to a string. If the
dataTypeis defined by XML Schema Part 2: Datatypes, then the corresponding lexical format is used. JSON format is used for structured values (arrays and objects).Declaration
Swift
override open func toString() -> StringReturn Value
Lexical representation of this data value.
-
Declaration
Swift
open class func truncateIfNeeded(_ value: Int) -> IntParameters
valueThe value to be truncated.
Return Value
The argument truncated (if needed) to the appropriate number of bits.
-
Data type code of the wrapped value, equivalent to
dataType.code.Declaration
Swift
override open var typeCode: Int { get } -
Convert a wrapped
unsignedBytevalue to an unsigned byte.Declaration
Swift
open class func unwrap(_ value: AnyObject?) -> IntParameters
valueThe wrapped value.
Return Value
A int.
-
The wrapped value.
Declaration
Swift
@inline(__always) public final var value: Int { get }