Skip to content

Commit aae9601

Browse files
committed
[Foundation] Reorder _DataStorage to save 14 bytes of overhead
1 parent e64d810 commit aae9601

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/public/SDK/Foundation/Data.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,10 @@ public final class _DataStorage {
9696
public var _bytes: UnsafeMutableRawPointer?
9797
public var _length: Int
9898
public var _capacity: Int
99-
public var _needToZero: Bool
99+
public var _offset: Int
100100
public var _deallocator: ((UnsafeMutableRawPointer, Int) -> Void)?
101101
public var _backing: Backing = .swift
102-
public var _offset: Int
102+
public var _needToZero: Bool
103103

104104
public var bytes: UnsafeRawPointer? {
105105
@inline(__always)

0 commit comments

Comments
 (0)