@@ -1668,12 +1668,10 @@ public struct Data : ReferenceConvertible, Equatable, Hashable, RandomAccessColl
1668
1668
1669
1669
/// Sets or returns the byte at the specified index.
1670
1670
public subscript( index: Index ) -> UInt8 {
1671
- @inlinable
1672
1671
get {
1673
1672
_validateIndex ( index)
1674
1673
return _backing. get ( index)
1675
1674
}
1676
- @inlinable
1677
1675
set {
1678
1676
_validateIndex ( index)
1679
1677
if !isKnownUniquelyReferenced( & _backing) {
@@ -1684,20 +1682,17 @@ public struct Data : ReferenceConvertible, Equatable, Hashable, RandomAccessColl
1684
1682
}
1685
1683
1686
1684
public subscript( bounds: Range < Index > ) -> Data {
1687
- @inlinable
1688
1685
get {
1689
1686
_validateRange ( bounds)
1690
1687
return Data ( backing: _backing, range: bounds)
1691
1688
}
1692
- @inlinable
1693
1689
set {
1694
1690
replaceSubrange ( bounds, with: newValue)
1695
1691
}
1696
1692
}
1697
1693
1698
1694
public subscript< R: RangeExpression > ( _ rangeExpression: R ) -> Data
1699
1695
where R. Bound: FixedWidthInteger , R. Bound. Stride : SignedInteger {
1700
- @inlinable
1701
1696
get {
1702
1697
let lower = R . Bound ( _sliceRange. lowerBound)
1703
1698
let upper = R . Bound ( _sliceRange. upperBound)
@@ -1708,7 +1703,6 @@ public struct Data : ReferenceConvertible, Equatable, Hashable, RandomAccessColl
1708
1703
_validateRange ( r)
1709
1704
return Data ( backing: _backing, range: r)
1710
1705
}
1711
- @inlinable
1712
1706
set {
1713
1707
let lower = R . Bound ( _sliceRange. lowerBound)
1714
1708
let upper = R . Bound ( _sliceRange. upperBound)
@@ -1724,7 +1718,6 @@ public struct Data : ReferenceConvertible, Equatable, Hashable, RandomAccessColl
1724
1718
1725
1719
/// The start `Index` in the data.
1726
1720
public var startIndex : Index {
1727
- @inlinable
1728
1721
get {
1729
1722
return _sliceRange. lowerBound
1730
1723
}
@@ -1734,24 +1727,20 @@ public struct Data : ReferenceConvertible, Equatable, Hashable, RandomAccessColl
1734
1727
///
1735
1728
/// This is the "one-past-the-end" position, and will always be equal to the `count`.
1736
1729
public var endIndex : Index {
1737
- @inlinable
1738
1730
get {
1739
1731
return _sliceRange. upperBound
1740
1732
}
1741
1733
}
1742
1734
1743
- @inlinable
1744
1735
public func index( before i: Index ) -> Index {
1745
1736
return i - 1
1746
1737
}
1747
1738
1748
- @inlinable
1749
1739
public func index( after i: Index ) -> Index {
1750
1740
return i + 1
1751
1741
}
1752
1742
1753
1743
public var indices : Range < Int > {
1754
- @inlinable
1755
1744
get {
1756
1745
return startIndex..< endIndex
1757
1746
}
0 commit comments