Class UConverterSharedData


  • final class UConverterSharedData
    extends java.lang.Object
    Defines the UConverterSharedData struct, the immutable, shared part of UConverter.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) static java.lang.String DATA_TYPE  
      (package private) CharsetMBCS.UConverterMBCSTable mbcs
      Shared data structures currently come in two flavors: - readonly for built-in algorithmic converters - allocated for MBCS, with a pointer to an allocated UConverterTable which always has a UConverterMBCSTable To eliminate one allocation, I am making the UConverterMBCSTable a member of the shared data.
      (package private) UConverterStaticData staticData
      pointer to the static (non changing) data.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • mbcs

        CharsetMBCS.UConverterMBCSTable mbcs
        Shared data structures currently come in two flavors: - readonly for built-in algorithmic converters - allocated for MBCS, with a pointer to an allocated UConverterTable which always has a UConverterMBCSTable To eliminate one allocation, I am making the UConverterMBCSTable a member of the shared data. It is the last member so that static definitions of UConverterSharedData work as before. The table field above also remains to avoid updating all static definitions, but is now unused.