Class ProtobufPacked


  • public class ProtobufPacked
    extends java.lang.Object
    Parse packed values (only numerical values)
    Since:
    17862
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private byte[] bytes  
      private int location  
      private long[] numbers  
    • Constructor Summary

      Constructors 
      Constructor Description
      ProtobufPacked​(byte[] bytes)
      Create a new ProtobufPacked object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long[] getArray()
      Get the parsed number array
      private int nextVarInt()
      Gets the location where the next var int begins.
      • Methods inherited from class java.lang.Object

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

      • ProtobufPacked

        public ProtobufPacked​(byte[] bytes)
        Create a new ProtobufPacked object
        Parameters:
        bytes - The packed bytes
        Since:
        18695
    • Method Detail

      • getArray

        public long[] getArray()
        Get the parsed number array
        Returns:
        The number array
      • nextVarInt

        private int nextVarInt()
        Gets the location where the next var int begins. Note: changes location.
        Returns:
        The next varint location