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