Package dev.gmitch215.bytebox.gradle
Enum Class SizeSpec.ModuleType
- All Implemented Interfaces:
Serializable,Comparable<SizeSpec.ModuleType>,Constable
- Enclosing class:
SizeSpec
How the compiled module is carried in the bundle.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionPicks on measured size: raw bytes below the crossover, a compressed frame above it.Raw bytes in aDatamodule, compressed by Cloudflare's own gzip.A compressed frame in aDatamodule, inflated at module scope. -
Method Summary
Modifier and TypeMethodDescriptionstatic SizeSpec.ModuleTypeReturns the enum constant of this class with the specified name.static SizeSpec.ModuleType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AUTO
Picks on measured size: raw bytes below the crossover, a compressed frame above it.The crossover is where a frame starts saving more than the decompressor costs, which is near 120 KB of raw WebAssembly.
-
DATA
Raw bytes in aDatamodule, compressed by Cloudflare's own gzip.Smallest below the crossover, and needs no decompressor in the bundle at all.
-
DATA_COMPRESSED
A compressed frame in aDatamodule, inflated at module scope.Wins once the frame saves more than the decompressor costs. The decompressor has to be synchronous, because a module-scope await never settles on this runtime.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-