presto-geospatial/src/main/java/io/prestosql/plugin/geospatial/GeoFunctions.java/GeoFunctions/getShapeByteBuffer
class GeoFunctions:    private static ByteBuffer getShapeByteBuffer(Slice input)
    {
        int offset = HADOOP_SHAPE_SIZE_WKID + HADOOP_SHAPE_SIZE_TYPE;
        if (input.length() <= offset) {
            throw new PrestoException(INVALID_FUNCTION_ARGUMENT, "Hadoop shape input is too short");
        }
        return input.toByteBuffer(offset, input.length() - offset).slice().order(ByteOrder.LITTLE_ENDIAN);
    }