FileInputStream-class: Class "FileInputStream"

FileInputStream-classR Documentation

Class "FileInputStream"

Description

A ZeroCopyInputStream reading from a file

Objects from the Class

Objects can be created by the FileInputStream function

Slots

pointer:

External pointer to the google::protobuf::io::FileInputStream C++ object

Extends

Class "ZeroCopyInputStream", directly.

Methods

close

signature(con="FileInputStream"): Flushes any buffers and closes the underlying file. Returns false if an error occurs during the process; use GetErrno to examine the error

GetErrno

signature(object="FileInputStream"): If an I/O error has occurred on this file descriptor, this is the errno from that error. Otherwise, this is zero. Once an error occurs, the stream is broken and all subsequent operations will fail.

SetCloseOnDelete

signature(object="FileInputStream"): set the close on delete behavior.

See ZeroCopyInputStream for inherited methods

Author(s)

Romain Francois <francoisromain@free.fr>

References

The FileInputStream class from the protobuf C++ library. https://developers.google.com/protocol-buffers/docs/reference/cpp/google.protobuf.io.zero_copy_stream_impl_lite?csw=1

See Also

ZeroCopyInputStream for methods


RProtoBuf documentation built on Nov. 3, 2022, 9:06 a.m.