presto-spi/src/main/java/io/prestosql/spi/block/ShortArrayBlock.java/ShortArrayBlock/getPositionsSizeInBytes
class ShortArrayBlock:    @Override
    public long getPositionsSizeInBytes(boolean[] positions)
    {
        return (Short.BYTES + Byte.BYTES) * (long) countUsedPositions(positions);
    }