getVarintLength method

int getVarintLength(
  1. int offset
)

Number of bytes the varint header at offset occupies.

Implementation

int getVarintLength(int offset) {
  return LayoutSerializationUtils.getVarintLength(_bytes[offset]);
}