Skip to content
This repository has been archived by the owner on Dec 23, 2023. It is now read-only.

stepping may behave oddly; variables may not be available - Read bytes from file data #10

Open
Sanadbarjawi opened this issue Apr 10, 2019 · 0 comments

Comments

@Sanadbarjawi
Copy link

using Swift 5, Xcode 10.2

im using it like this:

 for file in data {
                if let mimeType = Swime.mimeType(data: file) {
                    multipartFormData.append(file, withName: "dumdum", fileName: "file.\(mimeType.ext)", mimeType: mimeType.mime)
                }

the issue happens in the Swime Struct itself,
in this function:

  internal func readBytes(count: Int) -> [UInt8] {
    var bytes = [UInt8](repeating: 0, count: count)

    data.copyBytes(to: &bytes, count: count)

    return bytes
  }

ps: the count param value is equal to 262

im getting the following in my console:

Swime was compiled with optimization - stepping may behave oddly; variables may not be available.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant