Geo::GDAL::FFI::VSI::File(3pm) User Contributed Perl Documentation Geo::GDAL::FFI::VSI::File(3pm)

Geo::GDAL::FFI::VSI::File - A GDAL virtual file

 my $vsifile = Geo::GDAL::FFI::VSI::File->Open($name, $access);

Open a virtual file. $name is the name of the file to open. $access is 'r', 'r+', 'a', or 'w'. 'r' is the default.

Returns a Geo::GDAL::FFI::VSI::File object.

Closes the file handle. Is done automatically when the object is destroyed.

Read $len bytes from the file. Returns the bytes in a Perl string. $len is optional and by default 1.

Write the Perl string $buf into the file. Returns the number of successfully written bytes.

This software is released under the Artistic License. See perlartistic.

Ari Jolma - Ari.Jolma at gmail.com

Geo::GDAL::FFI

Alien::gdal, FFI::Platypus, <http://www.gdal.org>

2025-01-04 perl v5.40.0