CompressionMode

    ENetConnection.swift:19
    enum CompressionMode

    Cases

    • case none

      No compression. This uses the most bandwidth, but has the upside of requiring the fewest CPU resources. This option may also be used to make network debugging using tools like Wireshark easier.

    • case rangeCoder

      ENet’s built-in range encoding. Works well on small packets, but is not the most efficient algorithm on packets larger than 4 KB.

    • case fastlz

      FastLZ compression. This option uses less CPU resources compared to .compressZlib, at the expense of using more bandwidth.

    • case zlib

      Zlib compression. This option uses less bandwidth compared to .compressFastlz, at the expense of using more CPU resources.

    • case zstd

      Zstandard compression. Note that this algorithm is not very efficient on packets smaller than 4 KB. Therefore, it’s recommended to use other compression algorithms in most cases.

    Other members in extension

    View members

    Hide members

    This section is hidden by default because it contains too many (21) members.

    Types

    Type members

    Instance members

    Citizens in SwiftGodot

    Conformances

    Type members

    Instance members

    Type features

    Instance features