public static DSCODE toDSCODE(final byte value) throws IOException {
    try {
      DSCODE result = dscodes[value];
      if (result == null) {
        throw new IOException("Unknown header byte " + value);
      }
      return result;
    } catch (ArrayIndexOutOfBoundsException e) {
      throw new IOException("Unknown header byte: " + value);
    }
  }
DscodeHelper is used by advanced serialization code to convert between bytes and
DSCODEs.
geode-serialization/src/main/java/org/apache/geode/internal/serialization/DscodeHelper.java