Skip to content

Deprecations #435

Description

@aleene

I get warnings in CryptoSwiftMD5:

'deinitialize()' is deprecated: the default argument to deinitialize(count:) has been removed, please specify the count explicitly

and

'deallocate(capacity:)' is deprecated: Swift currently only supports freeing entire heap blocks, use deallocate() instead

I guess:

    valuePointer.deinitialize(count:totalBytes)
    valuePointer.deallocate()

solves this correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions