UTF8Error

struct UTF8Error

A UTF-8 validation failure located at the first malformed byte.

offset is relative to the byte array passed to String.decoding_utf8, not a character index or an absolute source location.

Properties

let offset: Int

The byte offset in the underlying storage.