@Override
  public byte[] toBytes() throws IOException {
    HeapDataOutputStream hdos = new HeapDataOutputStream(KnownVersion.CURRENT);
    sendTo(hdos);
    return hdos.toByteArray();
  }
Used to represent an enum value as a PdxInstance

@since GemFire 6.6.2
geode-core/src/main/java/org/apache/geode/pdx/internal/PdxInstanceEnum.java