Skip to content

Improper decoding of binary arrays. #7

@jdberry

Description

@jdberry

In the Array.init(fromBinary:) extension, the array elements should likewise be initialized with init(fromBinary:), not init(from:) as in the code. As it is, array elements are decoded by the implicit decoder but not by explicit binary decoders.

This:

let decoded = try binaryElement.init(from: decoder)

should be:

let decoded = try binaryElement.init(fromBinary: decoder)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions