Class TypeSizes


  • public final class TypeSizes
    extends java.lang.Object
    • Method Detail

      • sizeof

        public static int sizeof​(java.lang.String value)
        assumes UTF8
      • encodedUTF8Length

        public static int encodedUTF8Length​(java.lang.String st)
      • sizeofWithShortLength

        public static int sizeofWithShortLength​(java.nio.ByteBuffer value)
      • sizeofWithLength

        public static int sizeofWithLength​(java.nio.ByteBuffer value)
      • sizeofWithVIntLength

        public static int sizeofWithVIntLength​(java.nio.ByteBuffer value)
      • sizeof

        public static int sizeof​(boolean value)
      • sizeof

        public static int sizeof​(byte value)
      • sizeof

        public static int sizeof​(short value)
      • sizeof

        public static int sizeof​(int value)
      • sizeof

        public static int sizeof​(long value)
      • sizeof

        public static int sizeof​(float value)
      • sizeof

        public static int sizeof​(double value)
      • sizeof

        public static int sizeof​(java.util.UUID value)
      • sizeofVInt

        public static int sizeofVInt​(long value)
      • sizeofUnsignedVInt

        public static int sizeofUnsignedVInt​(long value)