Refactored methods to extensions

This commit is contained in:
Amir Abbas
2017-03-17 15:52:58 +03:30
parent e12f386a9d
commit 079f8f4b77
16 changed files with 249 additions and 222 deletions
+1 -1
View File
@@ -92,7 +92,7 @@ extension SMB2 {
}
let fileNameLen = Int(data.scanValue(start: offset + 8) as UInt32? ?? 0)
let fileName = data.scanString(start: offset + 12, length: fileNameLen, encoding: .utf16) ?? ""
let fileName = data.scanString(start: offset + 12, length: fileNameLen, using: .utf16) ?? ""
result.append((action: action, fileName: fileName))
offset += Int(nextOffset)