Class CodecUtils


  • public abstract class CodecUtils
    extends java.lang.Object
    User: BazylevD Date: Dec 5, 2008 Time: 9:31:59 PM
    • Constructor Detail

      • CodecUtils

        public CodecUtils()
    • Method Detail

      • readPackedUnsignedInt

        public static int readPackedUnsignedInt​(deltix.util.memory.MemoryDataInput in)
      • writePackedUnsignedInt

        public static void writePackedUnsignedInt​(int v,
                                                  deltix.util.memory.MemoryDataOutput out)
      • readPackedUnsignedLong

        public static long readPackedUnsignedLong​(deltix.util.memory.MemoryDataInput in)
      • writePackedUnsignedLong

        public static void writePackedUnsignedLong​(long v,
                                                   deltix.util.memory.MemoryDataOutput out)
      • getString

        public static java.lang.String getString​(java.lang.CharSequence value)
      • setString

        public static void setString​(java.lang.CharSequence value,
                                     deltix.util.memory.MemoryDataOutput out,
                                     boolean inlineEncoding)
      • getBitmaskValue

        public static int getBitmaskValue​(deltix.util.collections.CharSequenceToIntegerMap symbolToValueMap,
                                          java.lang.CharSequence value)
      • getEnumValues

        public static java.lang.Object[] getEnumValues​(java.lang.Class<?> enumClass,
                                                       EnumClassDescriptor ecd)
      • getEnumMap

        public static int[] getEnumMap​(java.lang.Class<?> enumClass,
                                       EnumClassDescriptor ecd)
      • compareNulls

        public static int compareNulls​(boolean isNull1,
                                       boolean isNull2)
      • getTypeBySize

        public static java.lang.String getTypeBySize​(int size)
      • primitiveTypeBySize

        public static java.lang.String primitiveTypeBySize​(int size)
      • getPrimitiveClass

        public static java.lang.Class<?> getPrimitiveClass​(java.lang.String className)
      • getMinLimit

        public static java.lang.Number getMinLimit​(DataType dataType,
                                                   boolean isBound,
                                                   java.lang.Class<?> valueClazz)
      • getMaxLimit

        public static java.lang.Number getMaxLimit​(DataType dataType,
                                                   boolean isBound,
                                                   java.lang.Class<?> valueClazz)
      • getLimit4BaseClass

        public static long getLimit4BaseClass​(boolean isUpper,
                                              java.lang.Class<?> clazz)
      • storeFieldSize

        public static void storeFieldSize​(int pos,
                                          deltix.util.memory.MemoryDataOutput out)
      • limitMDI

        public static int limitMDI​(int size,
                                   deltix.util.memory.MemoryDataInput in)
      • createFieldLayout

        public static RecordLayout createFieldLayout​(java.lang.String fieldName,
                                                     RecordLayout layout)
      • createFieldLayout

        public static RecordLayout createFieldLayout​(java.lang.String fieldName,
                                                     RecordLayout layout,
                                                     int index)
      • createPolyEncoder

        public static PolyBoundEncoderImpl createPolyEncoder​(java.lang.Class<?>[] encoderClasses,
                                                             java.lang.String fieldName,
                                                             RecordLayout layout)
      • get

        public static <V> V get​(deltix.util.collections.generated.IntegerToObjectHashMap<V> map,
                                int key)
                         throws deltix.util.lang.NotFoundException
        Throws:
        deltix.util.lang.NotFoundException
      • validateBoundClass

        public static void validateBoundClass​(RecordClassInfo layout)