Class MessageSizeCodec


  • public final class MessageSizeCodec
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int MAX_SIZE  
      static int MIN_SIZE  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static int fieldSize​(int t)  
      static int read​(byte[] bytes, int offset)  
      static int read​(deltix.util.collections.ByteQueue in)  
      static int read​(deltix.util.memory.MemoryDataInput in)  
      static int read​(java.io.DataInput in)  
      static int read​(java.io.InputStream in)  
      static int readNoPoll​(deltix.util.collections.ByteContainer in, int offset)  
      static int sizeOf​(int t)  
      static int write​(int t, byte[] dest, int offset)  
      static void write​(int t, deltix.util.collections.ByteQueue out)  
      static void write​(int t, deltix.util.memory.MemoryDataOutput out)  
      static void write​(int t, java.io.OutputStream out)  
      • Methods inherited from class java.lang.Object

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

      • MessageSizeCodec

        public MessageSizeCodec()
    • Method Detail

      • read

        public static int read​(byte[] bytes,
                               int offset)
      • read

        public static int read​(deltix.util.collections.ByteQueue in)
      • readNoPoll

        public static int readNoPoll​(deltix.util.collections.ByteContainer in,
                                     int offset)
      • read

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

        public static int read​(java.io.InputStream in)
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • read

        public static int read​(java.io.DataInput in)
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • write

        public static void write​(int t,
                                 deltix.util.memory.MemoryDataOutput out)
      • sizeOf

        public static int sizeOf​(int t)
      • write

        public static void write​(int t,
                                 deltix.util.collections.ByteQueue out)
      • write

        public static int write​(int t,
                                byte[] dest,
                                int offset)
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • write

        public static void write​(int t,
                                 java.io.OutputStream out)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • fieldSize

        public static int fieldSize​(int t)