public static PrimitiveTypeCodec get(final short value)
    {
        switch (value)
        {
            case 0: return NONE;
            case 1: return CHAR;
            case 2: return INT8;
            case 3: return INT16;
            case 4: return INT32;
            case 5: return INT64;
            case 6: return UINT8;
            case 7: return UINT16;
            case 8: return UINT32;
            case 9: return UINT64;
            case 10: return FLOAT;
            case 11: return DOUBLE;
            case 255: return NULL_VAL;
        }

        throw new IllegalArgumentException("Unknown value: " + value);
    }
Lookup the enum value representing the value.

@param value encoded to be looked up.
@return the enum value representing the value.
sbe-tool/src/main/java/uk/co/real_logic/sbe/ir/generated/PrimitiveTypeCodec.java