| Modifier and Type | Field and Description |
|---|---|
static int |
CMD_HDR_LEN_MAX
Maximum allowed 'command header' length value.
|
| Constructor and Description |
|---|
GeomCmdHdr() |
| Modifier and Type | Method and Description |
|---|---|
static int |
closePathCmdHdr() |
static int |
cmdHdr(GeomCmd cmd,
int length)
Encodes a 'command header' with the first 3 LSB as the command id, the remaining bits
as the command length.
|
static GeomCmd |
getCmd(int cmdHdr)
Get the id component from the 'command header' integer, then find the
GeomCmd with a matching id. |
static int |
getCmdId(int cmdHdr)
Get the id component from the 'command header' integer.
|
static int |
getCmdLength(int cmdHdr)
Get the length component from the 'command header' integer.
|
public static final int CMD_HDR_LEN_MAX
public static int cmdHdr(GeomCmd cmd, int length)
Encodes a 'command header' with the first 3 LSB as the command id, the remaining bits as the command length. See the vector-tile-spec for details.
cmd - command to executelength - how many times the command is repeatedpublic static int getCmdLength(int cmdHdr)
cmdHdr - encoded 'command header' integerpublic static int getCmdId(int cmdHdr)
cmdHdr - encoded 'command header' integerpublic static GeomCmd getCmd(int cmdHdr)
GeomCmd with a matching id.cmdHdr - encoded 'command header' integerpublic static int closePathCmdHdr()
GeomCmd.ClosePath.Copyright © 2022. All rights reserved.