Int64
public struct Int64 { /* private fields */ }A 64-bit signed integer.
Int64 is the 64-bit member of the integer family. The same surface
area is provided across all widths; switch widths to trade range for memory
or to match an FFI ABI. Arithmetic wraps on overflow by default — use the
*Checked variants for overflow detection or *Saturating to clamp to
minValue/maxValue. The type is FFISafe and lays out as a single
lang.i64 so it can cross C boundaries unchanged.
Examples
let a: Int64 = 100;
let b = a + 50; // 150
let c = a * 2; // 200
let d = a.addChecked(Int64.maxValue); // None (overflow detected)
// Bit twiddling
(0b1010).countOnes // 2
(1).shiftLeft(by: 4) // 16
(-1).leadingZeros // 0 (all bits set)
Representation
A single lang.i64 field. No padding, no headers — bit-identical
to the corresponding C type.
Properties
public static var bitWidth: Int64 { get }
public static var bitWidth: Int64 { get }The width in bits (64). Useful for shift bounds and bit-walks.
public var byteSwapped: Int64 { get }
public var byteSwapped: Int64 { get }Value with its byte order reversed. Use to convert between big- and
little-endian; lowered to a bswap intrinsic.
public var countOnes: Int64 { get }
public var countOnes: Int64 { get }Population count — the number of 1 bits in the binary representation.
Lowered to a popcount intrinsic where the target supports it.
Examples
(0b1010).countOnes; // 2
(0b1111).countOnes; // 4
(0).countOnes; // 0public var countZeros: Int64 { get }
public var countZeros: Int64 { get }Complement of countOnes: equal to bitWidth - countOnes.
public var isNegative: Bool { get }
public var isNegative: Bool { get }True when self < 0.
public var isPositive: Bool { get }
public var isPositive: Bool { get }True when self > 0.
public var isPowerOfTwo: Bool { get }
public var isPowerOfTwo: Bool { get }True when the value is a positive power of two (2^k for k >= 0).
Zero and negatives are excluded. Cheap branchless test built on
x & (x - 1) == 0.
Examples
(1).isPowerOfTwo; // true (2^0)
(4).isPowerOfTwo; // true (2^2)
(3).isPowerOfTwo; // false
(0).isPowerOfTwo; // falsepublic var isZero: Bool { get }
public var isZero: Bool { get }True when self == 0.
public var leadingZeros: Int64 { get }
public var leadingZeros: Int64 { get }Number of leading zero bits, counting from the most-significant end.
For zero, returns bitWidth.
Examples
(1).leadingZeros; // bitWidth - 1
(0).leadingZeros; // bitWidthpublic static var maxValue: Int64 { get }
public static var maxValue: Int64 { get }The largest representable value. This is 2^63 - 1 (9_223_372_036_854_775_807).
public static var minValue: Int64 { get }
public static var minValue: Int64 { get }The smallest representable value.
This is -2^63 (-9_223_372_036_854_775_808).
Note that for signed types minValue.negate() overflows back to
itself; use negateChecked() if you need to detect that.
public var raw: lang.i64
public var raw: lang.i64The underlying primitive lang.i64 value. Exposed for FFI
and intrinsic use; prefer the typed surface for everything else.
public var sign: Int64 { get }
public var sign: Int64 { get }Sign as a Int64: -1, 0, or 1.
public var trailingZeros: Int64 { get }
public var trailingZeros: Int64 { get }Number of trailing zero bits. Equal to log2(self & -self) for non-zero
values; returns bitWidth for zero. Useful for finding the largest
power of two dividing the value.
Initializers
public init()
public init()Creates the zero value, satisfying Defaultable.
Examples
let n = Int64(); // 0
public init[S](fromBytes: S) where S: Slice[UInt8]
public init[S](fromBytes: S) where S: Slice[UInt8]Reassembles a Int64 from 8 bytes in native byte order.
Returns null if the input is not exactly 8 bytes long.
public init[S](fromBytesBigEndian: S) where S: Slice[UInt8]
public init[S](fromBytesBigEndian: S) where S: Slice[UInt8]Reassembles a Int64 from 8 bytes in big-endian order.
Returns null if the input is not exactly 8 bytes long.
public init[S](fromBytesLittleEndian: S) where S: Slice[UInt8]
public init[S](fromBytesLittleEndian: S) where S: Slice[UInt8]Reassembles a Int64 from 8 bytes in little-endian order.
Returns null if the input is not exactly 8 bytes long.
public init(from: Int8)
public init(from: Int8)Converts from Int8. Narrowing conversions truncate the high
bits; signed→unsigned reinterprets the bit pattern.
public init(from: Int16)
public init(from: Int16)Converts from Int16. Narrowing conversions truncate the high
bits; signed→unsigned reinterprets the bit pattern.
public init(from: Int32)
public init(from: Int32)Converts from Int32. Narrowing conversions truncate the high
bits; signed→unsigned reinterprets the bit pattern.
public init(from: UInt8)
public init(from: UInt8)Converts from UInt8. Narrowing conversions truncate the high
bits; signed→unsigned reinterprets the bit pattern.
public init(from: UInt16)
public init(from: UInt16)Converts from UInt16. Narrowing conversions truncate the high
bits; signed→unsigned reinterprets the bit pattern.
public init(from: UInt32)
public init(from: UInt32)Converts from UInt32. Narrowing conversions truncate the high
bits; signed→unsigned reinterprets the bit pattern.
public init(from: UInt64)
public init(from: UInt64)Converts from UInt64. Narrowing conversions truncate the high
bits; signed→unsigned reinterprets the bit pattern.
init(raw: lang.i64)
init(raw: lang.i64)Wraps an existing lang.i64 without conversion. Internal
constructor used by intrinsics; not part of the public API.
public init(intLiteral: lang.i64)
public init(intLiteral: lang.i64)Compiler-emitted bridge that turns an integer literal into a Int64.
You will rarely call this directly — write the literal and let the
ExpressibleByIntLiteral protocol pick it up. For widths smaller than
64 bits the literal is truncated with lang.cast_i64_i64.
Examples
let n: Int64 = 42; // implicit
public init(parsing: String)
public init(parsing: String)Parses a base-10 integer literal, optionally prefixed with + or -.
Returns null for an empty string, a non-digit character,
or a value that does not fit in Int64.
Examples
Int64(parsing: "42"); // Some(42)
Int64(parsing: "-7"); // Some(-7)
Int64(parsing: "abc"); // Nonepublic init(parsing: String, radix: Int64)
public init(parsing: String, radix: Int64)Parses an integer in radix (base 2-36 inclusive). Letters a-z are
case-insensitive and represent digit values 10-35.
Examples
Int64(parsing: "ff", radix: 16); // Some(255 if it fits, else None)
Int64(parsing: "101010", radix: 2); // Some(42)
Int64(parsing: "z", radix: 36); // Some(35)Methods
public func absChecked() -> Int64?
public func absChecked() -> Int64?Absolute value that returns None for minValue (whose absolute
value overflows).
public func absSaturating() -> Int64
public func absSaturating() -> Int64Absolute value that returns maxValue instead of wrapping minValue.
public func addChecked(Int64) -> Int64?
public func addChecked(Int64) -> Int64?Wrapping addition that returns None instead of overflowing.
public func addSaturating(Int64) -> Int64
public func addSaturating(Int64) -> Int64Addition that clamps to maxValue/minValue instead of wrapping.
public func clamp(Int64, Int64) -> Int64
public func clamp(Int64, Int64) -> Int64Clamps self into [min, max]. Caller is responsible for ensuring
min <= max; otherwise the result is undefined.
Examples
(5).clamp(0, 10); // 5
(-5).clamp(0, 10); // 0
(15).clamp(0, 10); // 10public func divideChecked(Int64) -> Int64?
public func divideChecked(Int64) -> Int64?Division that returns None for divide-by-zero or for the
minValue / -1 overflow case.
public consuming func divideUnchecked(consuming Int64) -> Int64
public consuming func divideUnchecked(consuming Int64) -> Int64self / other without the divide-by-zero and minValue / -1 guards —
the bare hardware divide. Faster in hot loops, but undefined
behaviour if other == 0 or (for signed types) self == minValue and other == -1. The caller must guarantee a valid divisor. Prefer
divide everywhere correctness matters; this is the arr(unchecked:)
of arithmetic.
Safety
UB when other == 0, or signed minValue / -1.
public func gcd(Int64) -> Int64
public func gcd(Int64) -> Int64Greatest common divisor via Euclidean algorithm. For signed types the inputs are taken absolute first; the result is always non-negative.
Examples
(12).gcd(8); // 4
(17).gcd(5); // 1 (coprime)
(-12).gcd(8); // 4public func lcm(Int64) -> Int64
public func lcm(Int64) -> Int64Least common multiple, computed as |self| / gcd(self, other) * |other|
to avoid intermediate overflow. Returns zero if either input is zero.
Examples
(4).lcm(6); // 12
(3).lcm(5); // 15
(0).lcm(7); // 0public consuming func moduloUnchecked(consuming Int64) -> Int64
public consuming func moduloUnchecked(consuming Int64) -> Int64self % other without the divide-by-zero and minValue % -1 guards.
Same safety contract as divideUnchecked.
Safety
UB when other == 0, or signed minValue % -1.
public func multiplyChecked(Int64) -> Int64?
public func multiplyChecked(Int64) -> Int64?Wrapping multiplication that returns None instead of overflowing.
public func multiplySaturating(Int64) -> Int64
public func multiplySaturating(Int64) -> Int64Multiplication that clamps to maxValue/minValue instead of wrapping.
The clamp direction follows the algebraic sign of the would-be result.
public func negateChecked() -> Int64?
public func negateChecked() -> Int64?Negation that returns None for minValue (whose negation overflows).
public func negateSaturating() -> Int64
public func negateSaturating() -> Int64Negation that returns maxValue instead of wrapping minValue.
public func pow(Int64) -> Int64
public func pow(Int64) -> Int64Raises self to exponent via binary exponentiation. Wraps on
overflow. Negative exponents return zero (integer truncation of
the would-be fraction).
Examples
(2).pow(10); // 1024
(3).pow(4); // 81
(5).pow(-1); // 0public func rotateLeft(by: Int64) -> Int64
public func rotateLeft(by: Int64) -> Int64Rotates bits left by count, modulo bitWidth. Bits shifted past the
MSB re-enter at the LSB.
public func rotateRight(by: Int64) -> Int64
public func rotateRight(by: Int64) -> Int64Rotates bits right by count, modulo bitWidth. Mirror of
rotateLeft.
public func subtractChecked(Int64) -> Int64?
public func subtractChecked(Int64) -> Int64?Wrapping subtraction that returns None instead of overflowing.
public func subtractSaturating(Int64) -> Int64
public func subtractSaturating(Int64) -> Int64Subtraction that clamps to maxValue/minValue instead of wrapping.
public func toBytes() -> std.collections.Array[UInt8]
public func toBytes() -> std.collections.Array[UInt8]Splits this integer into 8 bytes in native (host) byte order.
Use toBytesBigEndian / toBytesLittleEndian when serialising for
a fixed wire format.
Examples
let bytes = Int64.maxValue.toBytes(); // 8 bytes, host order
public func toBytesBigEndian() -> std.collections.Array[UInt8]
public func toBytesBigEndian() -> std.collections.Array[UInt8]Splits this integer into 8 bytes in big-endian order (most significant byte first — i.e. network byte order).
public func toBytesLittleEndian() -> std.collections.Array[UInt8]
public func toBytesLittleEndian() -> std.collections.Array[UInt8]Splits this integer into 8 bytes in little-endian order (least significant byte first).
ImplementsSignedInteger
Methods
public func abs() -> Int64
public func abs() -> Int64Absolute value. Wraps at the minimum value
(Int64.minValue.abs() == Int64.minValue); use
absChecked if that's a problem.
ImplementsSteppable
Methods
public func distance(to: Int64) -> Int64
public func distance(to: Int64) -> Int64Number of successor() steps from self to other — other - self
widened to Int64 (negative when other < self). O(1); lets closed
ranges iterate with a counter instead of a "finished" flag.
public func predecessor() -> Int64
public func predecessor() -> Int64Predecessor — self - 1. Wraps at minValue.
public func successor() -> Int64
public func successor() -> Int64Successor — self + 1. Wraps at maxValue. Used by for-in over
integer ranges.
ImplementsComparable
Associated Types
type Output = Bool
type Output = BoolMethods
public func compare(Int64) -> Ordering
public func compare(Int64) -> OrderingThree-way comparison returning an Ordering. Signed types compare
using two's-complement ordering; unsigned types use natural ordering.
Examples
(1).compare(2); // .Less
(2).compare(2); // .Equal
(3).compare(2); // .Greaterpublic func greaterThan(Self) -> Bool
public func greaterThan(Self) -> Bool> derived from compare.
public func greaterThanOrEqual(Self) -> Bool
public func greaterThanOrEqual(Self) -> Bool>= derived from compare.
public func isAtLeast(Self) -> Bool
public func isAtLeast(Self) -> Boolstart.. lower-bound check, derived from compare.
public func isAtMost(Self) -> Bool
public func isAtMost(Self) -> Bool..=end upper-bound check, derived from compare.
public func isBelow(Self) -> Bool
public func isBelow(Self) -> Bool..<end upper-bound check, derived from compare.
public func lessThan(Self) -> Bool
public func lessThan(Self) -> Bool< derived from compare.
public func lessThanOrEqual(Self) -> Bool
public func lessThanOrEqual(Self) -> Bool<= derived from compare.
ImplementsEquatable
Associated Types
type Output = Bool
type Output = BoolMethods
public func equal(to: Self) -> Bool
public func equal(to: Self) -> BoolBridges Equal.equal(to:) to Equatable.isEqual(to:).
public func isEqual(to: Int64) -> Bool
public func isEqual(to: Int64) -> BoolBit-for-bit equality. Backs the == operator.
Examples
(42).isEqual(to: 42); // true
42 == 42; // truepublic func notEqual(to: Self) -> Bool
public func notEqual(to: Self) -> BoolDefault !=: delegates to == so there's a single source of truth.
ImplementsMatchable
Methods
public func matches(Int64) -> Bool
public func matches(Int64) -> BoolPattern-matching hook for Matchable. Identical to isEqual.
ImplementsFormattable
Methods
public func format(into: mutating StringBuilder, FormatOptions)
public func format(into: mutating StringBuilder, FormatOptions)Formats the integer directly into writer, honouring the supplied
FormatOptions. Implements the Formattable protocol.
Examples
(42).format(); // "42"
(255).format(.{radix: 16}); // "ff"
(255).format(.{radix: 16, uppercase: true}); // "FF"
(255).format(.{radix: 16, alternate: true}); // "0xff"
(42).format(.{radix: 2, alternate: true}); // "0b101010"
(42).format(.{width: .Some(5), fill: '0'}); // "00042"
(-42).format(.{sign: .Always}); // "-42"public func formatted(FormatOptions) -> String
public func formatted(FormatOptions) -> StringReturns this value rendered as a String.
Convenience wrapper: creates a StringBuilder, calls
format(into:), and returns the built string. Uses a distinct
name to avoid overload-resolution ambiguity with format(into:).
ImplementsHashable
Methods
public func hash[H](into: mutating H) where H: Hasher
public func hash[H](into: mutating H) where H: HasherFeeds the raw bytes of this value into hasher. Endianness-agnostic
only within a single process — do not persist hashes across builds.
ImplementsAddable
Properties
public static var zero: Int64 { get }
public static var zero: Int64 { get }The additive identity, 0.
Associated Types
type Output = Int64
type Output = Int64type Output = Int64
type Output = Int64type Output = Int64
type Output = Int64type Output = Int64
type Output = Int64type Output = Int64
type Output = Int64type Output = Int64
type Output = Int64type Output = Int64
type Output = Int64type Output = Int64
type Output = Int64type Output = Int64
type Output = Int64type Output = Int64
type Output = Int64type Output = Int64
type Output = Int64type Output = Int64
type Output = Int64type Output = Range[Int64]
type Output = Range[Int64]type Output = ClosedRange[Int64]
type Output = ClosedRange[Int64]type Output = RangeFrom[Int64]
type Output = RangeFrom[Int64]type Output = RangeUpTo[Int64]
type Output = RangeUpTo[Int64]type Output = RangeThrough[Int64]
type Output = RangeThrough[Int64]Methods
public consuming func add(consuming Int64) -> Int64
public consuming func add(consuming Int64) -> Int64self + other, wrapping on overflow. Use addChecked to detect or
addSaturating to clamp.
ImplementsSubtractable
Associated Types
type Output
type OutputMethods
public consuming func subtract(consuming Int64) -> Int64
public consuming func subtract(consuming Int64) -> Int64self - other, wrapping on overflow.
ImplementsMultipliable
Properties
public static var one: Int64 { get }
public static var one: Int64 { get }The multiplicative identity, 1.
Associated Types
type Output
type OutputMethods
public consuming func multiply(consuming Int64) -> Int64
public consuming func multiply(consuming Int64) -> Int64self * other, wrapping on overflow.
ImplementsDivisible
Associated Types
type Output
type OutputMethods
public consuming func divide(consuming Int64) -> Int64
public consuming func divide(consuming Int64) -> Int64Truncating integer division (self / other). For signed types,
minValue / -1 wraps; use divideChecked to detect.
Errors
Traps on division by zero (LLVM udiv/sdiv are UB on zero — the
process aborts before producing a result).
ImplementsModulo
Associated Types
type Output
type OutputMethods
public consuming func modulo(consuming Int64) -> Int64
public consuming func modulo(consuming Int64) -> Int64self % other — truncated remainder; the result has the sign of
self for signed types.
Errors
Traps on division by zero, like divide.
ImplementsNegatable
Associated Types
type Output
type OutputMethods
public consuming func negate() -> Int64
public consuming func negate() -> Int64Two's-complement negation. Wraps at the minimum value:
Int64.minValue.negate() == Int64.minValue. Use
negateChecked to surface the overflow.
ImplementsBitwiseAnd
Associated Types
type Output
type OutputMethods
public consuming func bitwiseAnd(consuming Int64) -> Int64
public consuming func bitwiseAnd(consuming Int64) -> Int64Bitwise AND. 0b1010 & 0b1100 == 0b1000.
ImplementsBitwiseOr
Associated Types
type Output
type OutputMethods
public consuming func bitwiseOr(consuming Int64) -> Int64
public consuming func bitwiseOr(consuming Int64) -> Int64Bitwise OR. 0b1010 | 0b1100 == 0b1110.
ImplementsBitwiseXor
Associated Types
type Output
type OutputMethods
public consuming func bitwiseXor(consuming Int64) -> Int64
public consuming func bitwiseXor(consuming Int64) -> Int64Bitwise XOR. 0b1010 ^ 0b1100 == 0b0110.
ImplementsBitwiseNot
Associated Types
type Output
type OutputMethods
public consuming func bitwiseNot() -> Int64
public consuming func bitwiseNot() -> Int64Bitwise NOT — flips all bits. For signed types this is -self - 1.
ImplementsLeftShift
Associated Types
type Output
type OutputMethods
public consuming func shiftLeft(by: consuming Int64) -> Int64
public consuming func shiftLeft(by: consuming Int64) -> Int64Left shift by count. Behavior is undefined when count >= bitWidth
— pre-mask the count if you can't guarantee the bound.
ImplementsRightShift
Associated Types
type Output
type OutputMethods
public consuming func shiftRight(by: consuming Int64) -> Int64
public consuming func shiftRight(by: consuming Int64) -> Int64Right shift by count. Arithmetic (sign-extending) for signed types,
logical (zero-filling) for unsigned. Same count precondition as
shiftLeft.
ImplementsAddAssign
Methods
public mutating func addAssign(Int64)
public mutating func addAssign(Int64)self += other
ImplementsSubtractAssign
Methods
public mutating func subtractAssign(Int64)
public mutating func subtractAssign(Int64)self -= other
ImplementsMultiplyAssign
Methods
public mutating func multiplyAssign(Int64)
public mutating func multiplyAssign(Int64)self *= other
ImplementsDivideAssign
Methods
public mutating func divideAssign(Int64)
public mutating func divideAssign(Int64)self /= other
ImplementsModuloAssign
Methods
public mutating func modAssign(Int64)
public mutating func modAssign(Int64)self %= other
ImplementsBitwiseAndAssign
Methods
public mutating func bitwiseAndAssign(Int64)
public mutating func bitwiseAndAssign(Int64)self &= other
ImplementsBitwiseOrAssign
Methods
public mutating func bitwiseOrAssign(Int64)
public mutating func bitwiseOrAssign(Int64)self |= other
ImplementsBitwiseXorAssign
Methods
public mutating func bitwiseXorAssign(Int64)
public mutating func bitwiseXorAssign(Int64)self ^= other
ImplementsLeftShiftAssign
Methods
public mutating func shiftLeftAssign(by: Int64)
public mutating func shiftLeftAssign(by: Int64)self <<= count
ImplementsRightShiftAssign
Methods
public mutating func shiftRightAssign(by: Int64)
public mutating func shiftRightAssign(by: Int64)self >>= count
ImplementsExpressibleByIntLiteral
Initializers
init(intLiteral: lang.i64)
init(intLiteral: lang.i64)Builds an instance from an integer literal.
ImplementsDefaultable
Initializers
init()
init()Builds the default-valued instance.
ImplementsRangeConstructible
Associated Types
type Output
type OutputMethods
public func exclusiveRange(to: Int64) -> Range[Int64]
public func exclusiveRange(to: Int64) -> Range[Int64]Builds a half-open range self..<end. Sugar for the ..< operator.
ImplementsClosedRangeConstructible
Associated Types
type Output
type OutputMethods
public func inclusiveRange(to: Int64) -> ClosedRange[Int64]
public func inclusiveRange(to: Int64) -> ClosedRange[Int64]Builds a closed range self..=end. Sugar for the ..= operator.
ImplementsRangeFromConstructible
Associated Types
type Output
type OutputMethods
public func rangeFrom() -> RangeFrom[Int64]
public func rangeFrom() -> RangeFrom[Int64]Builds a partial range self.. (from self, no upper bound).
ImplementsRangeUpToConstructible
Associated Types
type Output
type OutputMethods
public func rangeUpTo() -> RangeUpTo[Int64]
public func rangeUpTo() -> RangeUpTo[Int64]Builds a partial range ..<self (up to self, exclusive).
ImplementsRangeThroughConstructible
Associated Types
type Output
type OutputMethods
public func rangeThrough() -> RangeThrough[Int64]
public func rangeThrough() -> RangeThrough[Int64]Builds a partial range ..=self (through self, inclusive).
ImplementsConvertible
Initializers
init(from: From)
init(from: From)Creates an instance from value.
ImplementsSeqIndex
Associated Types
type SeqOutput = T
type SeqOutput = TMethods
public func readSeq(from: ArraySlice[T]) -> T
public func readSeq(from: ArraySlice[T]) -> Tpublic func readSeqChecked(from: ArraySlice[T]) -> T?
public func readSeqChecked(from: ArraySlice[T]) -> T?public func readSeqUnchecked(from: ArraySlice[T]) -> T
public func readSeqUnchecked(from: ArraySlice[T]) -> Tpublic func writeSeq(to: ArraySlice[T], with: T)
public func writeSeq(to: ArraySlice[T], with: T)public func writeSeqUnchecked(to: ArraySlice[T], with: T)
public func writeSeqUnchecked(to: ArraySlice[T], with: T)ImplementsSeqClampable
Associated Types
type SeqClampedOutput = T?
type SeqClampedOutput = T?Methods
public func readSeqClamped(from: ArraySlice[T]) -> T?
public func readSeqClamped(from: ArraySlice[T]) -> T?public func writeSeqClamped(to: ArraySlice[T], with: T?)
public func writeSeqClamped(to: ArraySlice[T], with: T?)ImplementsSeqWrappable
Associated Types
type SeqWrappedOutput = T?
type SeqWrappedOutput = T?Methods
public func readSeqWrapped(from: ArraySlice[T]) -> T?
public func readSeqWrapped(from: ArraySlice[T]) -> T?public func writeSeqWrapped(to: ArraySlice[T], with: T?)
public func writeSeqWrapped(to: ArraySlice[T], with: T?)ImplementsExitable
Methods
consuming func report() -> ExitCode
consuming func report() -> ExitCodeImplementsBytesIndex
Associated Types
type BytesYield = UInt8
type BytesYield = UInt8Methods
public func readBytes(from: BytesView) -> UInt8
public func readBytes(from: BytesView) -> UInt8public func readBytesChecked(from: BytesView) -> UInt8?
public func readBytesChecked(from: BytesView) -> UInt8?public func readBytesUnchecked(from: BytesView) -> UInt8
public func readBytesUnchecked(from: BytesView) -> UInt8ImplementsBytesClampable
Associated Types
type BytesClampedYield = UInt8?
type BytesClampedYield = UInt8?Methods
public func readBytesClamped(from: BytesView) -> UInt8?
public func readBytesClamped(from: BytesView) -> UInt8?ImplementsBytesWrappable
Associated Types
type BytesWrappedYield = UInt8?
type BytesWrappedYield = UInt8?Methods
public func readBytesWrapped(from: BytesView) -> UInt8?
public func readBytesWrapped(from: BytesView) -> UInt8?ImplementsCharsIndex
Associated Types
type CharsYield = Char
type CharsYield = CharMethods
public func readChars(from: CharsView) -> Char
public func readChars(from: CharsView) -> Charpublic func readCharsChecked(from: CharsView) -> Char?
public func readCharsChecked(from: CharsView) -> Char?ImplementsCharsClampable
Associated Types
type CharsClampedYield = Char?
type CharsClampedYield = Char?Methods
public func readCharsClamped(from: CharsView) -> Char?
public func readCharsClamped(from: CharsView) -> Char?ImplementsCharsWrappable
Associated Types
type CharsWrappedYield = Char?
type CharsWrappedYield = Char?Methods
public func readCharsWrapped(from: CharsView) -> Char?
public func readCharsWrapped(from: CharsView) -> Char?ImplementsGraphemesIndex
Associated Types
type GraphemesYield = Grapheme
type GraphemesYield = GraphemeMethods
public func readGraphemes(from: GraphemesView) -> Grapheme
public func readGraphemes(from: GraphemesView) -> Graphemepublic func readGraphemesChecked(from: GraphemesView) -> Grapheme?
public func readGraphemesChecked(from: GraphemesView) -> Grapheme?ImplementsGraphemesClampable
Associated Types
type GraphemesClampedYield = Grapheme?
type GraphemesClampedYield = Grapheme?Methods
public func readGraphemesClamped(from: GraphemesView) -> Grapheme?
public func readGraphemesClamped(from: GraphemesView) -> Grapheme?ImplementsGraphemesWrappable
Associated Types
type GraphemesWrappedYield = Grapheme?
type GraphemesWrappedYield = Grapheme?Methods
public func readGraphemesWrapped(from: GraphemesView) -> Grapheme?
public func readGraphemesWrapped(from: GraphemesView) -> Grapheme?ImplementsLinesIndex
Associated Types
type LinesYield = String
type LinesYield = StringMethods
public func readLines(from: LinesView) -> String
public func readLines(from: LinesView) -> Stringpublic func readLinesChecked(from: LinesView) -> String?
public func readLinesChecked(from: LinesView) -> String?ImplementsLinesClampable
Associated Types
type LinesClampedYield = String?
type LinesClampedYield = String?Methods
public func readLinesClamped(from: LinesView) -> String?
public func readLinesClamped(from: LinesView) -> String?ImplementsLinesWrappable
Associated Types
type LinesWrappedYield = String?
type LinesWrappedYield = String?Methods
public func readLinesWrapped(from: LinesView) -> String?
public func readLinesWrapped(from: LinesView) -> String?Defined in lang/std/numeric/int64.ks