init(serializedBytes:extensions:partial:options:)

    Creates a new message by decoding the given Foundation/ContiguousBytes value containing a serialized message in Protocol Buffer binary format.

    Message+BinaryAdditions_Data.swift:94

    This declaration is deprecated: Please conform your Bytes type to `SwiftProtobufContiguousBytes` instead of `Foundation.ContiguousBytes`.

    init<Bytes>(serializedBytes bytes: Bytes, extensions: (any ExtensionMap)? = nil, partial: Bool = false, options: BinaryDecodingOptions = BinaryDecodingOptions()) throws where Bytes : ContiguousBytes

    Parameters

    serializedBytes

    The binary-encoded message data to decode.

    extensions

    An ExtensionMap used to look up and decode any extensions in this message or messages nested within this message’s fields.

    partial

    If false (the default), this method will check isInitialized after decoding to verify that all required fields are present. If any are missing, this method throws SwiftProtobufError/BinaryDecoding/missingRequiredFields.

    options

    The BinaryDecodingOptions to use.

    Throws

    SwiftProtobufError if decoding fails.

    Other members in extension

    Type members

    Show obsolete interfaces (2)

    Hide obsolete interfaces

    Instance members

    Show obsolete interfaces (2)

    Hide obsolete interfaces