Int8
Represents an 8-bit signed integer. While for most purposes you can represent
the same data with Int8 and UInt8, you will encounter trouble when
performing comparisons. Other operations are the same as VSL uses thetwo
's-complement representation of signed integers.
A defined integers in VSL cannot be implicitly cast to another due to the potential unsafe loss of precision.
Initializers
Methods
public func toString(base: Int32) -> StringConverts to a string
Static Methods
public static func +(lhs: Int8, rhs: Int8) -> Int8public static func -(lhs: Int8, rhs: Int8) -> Int8public static func *(lhs: Int8, rhs: Int8) -> Int8public static func /(lhs: Int8, rhs: Int8) -> Doublepublic static func \(lhs: Int8, rhs: Int8) -> Int8public static func %(lhs: Int8, rhs: Int8) -> Int8public static func ==(lhs: Int8, rhs: Int8) -> Boolpublic static func !=(lhs: Int8, rhs: Int8) -> Boolpublic static func >=(lhs: Int8, rhs: Int8) -> Boolpublic static func <=(lhs: Int8, rhs: Int8) -> Boolpublic static func >(lhs: Int8, rhs: Int8) -> Boolpublic static func <(lhs: Int8, rhs: Int8) -> Boolpublic static func &(lhs: Int8, rhs: Int8) -> Int8public static func |(lhs: Int8, rhs: Int8) -> Int8public static func ^(lhs: Int8, rhs: Int8) -> Int8public static func <<(lhs: Int8, rhs: Int8) -> Int8public static func >>(lhs: Int8, rhs: Int8) -> Int8public static func >>>(lhs: Int8, rhs: Int8) -> Int8public static func ~(expression: Int8) -> Int8public static func -(expression: Int8) -> Int8public static func random(from: Int8, to: Int8) -> Int8Generates random number in range [from, to)