We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4cca45e + 1898700 commit 6dfb66fCopy full SHA for 6dfb66f
PlaygroundLogger/PlaygroundLogger/ExtensionString.swift
@@ -53,9 +53,7 @@ extension String : Serializable {
53
}
54
55
init (rawBytes: [UInt8]) {
56
- self = rawBytes.withUnsafeBufferPointer { (storage : UnsafeBufferPointer<UInt8>) in
57
- return String._fromCodeUnitSequenceWithRepair(UTF8.self, input: storage).0
58
- }
+ self = String(decoding: rawBytes, as: UTF8.self)
59
60
61
init? (storage: BytesStorage) {
0 commit comments