presto-rcfile/src/main/java/io/prestosql/rcfile/binary/ShortEncoding.java/ShortEncoding/encodeValueInto
class ShortEncoding:    @Override
    public void encodeValueInto(Block block, int position, SliceOutput output)
    {
        output.writeShort(Short.reverseBytes((short) type.getLong(block, position)));
    }