init(plainHexEncodedBytes:)

    Create a fresh ByteBuffer containing the bytes decoded from the string representation of plainHexEncodedBytes.

    ByteBuffer-hex.swift:27
    init(plainHexEncodedBytes string: String) throws

    This will allocate a new ByteBuffer with enough space to fit the hex decoded bytes and potentially some extra space using the default allocator.

    • info: If you have access to a Channel, ChannelHandlerContext, or ByteBufferAllocator we recommend using channel.allocator.buffer(integer:). Or if you want to write multiple items into the buffer use channel.allocator.buffer(capacity: ...) to allocate a ByteBuffer of the right size followed by a writeHexEncodedBytes instead of using this method. This allows SwiftNIO to do accounting and optimisations of resources acquired for operations on a given Channel in the future.

    Other members in extension

    Types

    Typealiases

    Show implementation details (2)

    Hide implementation details

    Type members

    Instance members

    Show obsolete interfaces (3)

    Hide obsolete interfaces