File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -62,11 +62,20 @@ internal final class _NSCFConstantString : _NSCFString {
62
62
let ptr = unsafeAddress ( of: self ) + sizeof( OpaquePointer . self) + sizeof( Int32 . self) + sizeof( Int32 . self) + sizeof( _CFInfo. self)
63
63
return UnsafePointer < UnsafePointer < UInt8 > > ( ptr) . pointee
64
64
}
65
+
66
+ #if arch(s390x)
67
+ internal var _length : UInt64 {
68
+ let offset = sizeof ( OpaquePointer . self) + sizeof( Int32 . self) + sizeof( Int32 . self) + sizeof( _CFInfo. self) + sizeof( UnsafePointer< UInt8> . self )
69
+ let ptr = unsafeAddress ( of: self ) + offset
70
+ return UnsafePointer < UInt64 > ( ptr) . pointee
71
+ }
72
+ #else
65
73
internal var _length : UInt32 {
66
74
let offset = sizeof ( OpaquePointer . self) + sizeof( Int32 . self) + sizeof( Int32 . self) + sizeof( _CFInfo. self) + sizeof( UnsafePointer< UInt8> . self )
67
75
let ptr = unsafeAddress ( of: self ) + offset
68
76
return UnsafePointer < UInt32 > ( ptr) . pointee
69
77
}
78
+ #endif
70
79
71
80
required init ( characters: UnsafePointer < unichar > , length: Int ) {
72
81
fatalError ( )
You can’t perform that action at this time.
0 commit comments