Class ProtobufPacked
- java.lang.Object
-
- org.openstreetmap.josm.data.protobuf.ProtobufPacked
-
public class ProtobufPacked extends java.lang.Object
Parse packed values (only numerical values)- Since:
- 17862
-
-
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 arrayprivate intnextVarInt()Gets the location where the next var int begins.
-
-
-
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: changeslocation.- Returns:
- The next varint location
-
-