| Modifier and Type | Field and Description |
|---|---|
| public static final int | |
| public static final int[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static byte[] | allocSecondary(byte[] curr)
While we could get all fancy on allocating secondary buffer (after initial one), let's start with very simple strategy of medium-length buffer. |
| public static int | appendLengthLength(int len, byte[] buffer, int ptr)
Note caller MUST ensure buffer has room for at least 5 bytes |
| public static byte[] | |
| public static int | |
| public static int | |
| public static long | |
| public static int | |
| public static long |
| SECONDARY_BUFFER_LENGTH | back to summary |
|---|---|
| public static final int SECONDARY_BUFFER_LENGTH | |
| sUtf8UnitLengths | back to summary |
|---|---|
| public static final int[] sUtf8UnitLengths | |
| ProtobufUtil | back to summary |
|---|---|
| public ProtobufUtil() | |
| allocSecondary | back to summary |
|---|---|
| public static byte[] allocSecondary(byte[] curr) While we could get all fancy on allocating secondary buffer (after initial one), let's start with very simple strategy of medium-length buffer. | |
| appendLengthLength | back to summary |
|---|---|
| public static int appendLengthLength(int len, byte[] buffer, int ptr) Note caller MUST ensure buffer has room for at least 5 bytes | |
| lengthAsBytes | back to summary |
|---|---|
| public static byte[] lengthAsBytes(int len) | |
| lengthLength | back to summary |
|---|---|
| public static int lengthLength(int len) | |
| zigzagDecode | back to summary |
|---|---|
| public static int zigzagDecode(int encoded) | |
| zigzagDecode | back to summary |
|---|---|
| public static long zigzagDecode(long encoded) | |
| zigzagEncode | back to summary |
|---|---|
| public static int zigzagEncode(int input) | |
| zigzagEncode | back to summary |
|---|---|
| public static long zigzagEncode(long input) | |