Go to the documentation of this file.
38 #include <sys/types.h>
58 #define lseek(fd, offset, origin) ((off_t)-1)
62 using google::protobuf::io::win32::close;
63 using google::protobuf::io::win32::open;
64 using google::protobuf::io::win32::read;
65 using google::protobuf::io::win32::write;
71 int close_no_eintr(
int fd) {
84 : copying_input_(file_descriptor), impl_(©ing_input_, block_size) {}
100 :
file_(file_descriptor),
101 close_on_delete_(
false),
104 previous_seek_failed_(
false) {}
107 if (close_on_delete_) {
118 if (close_no_eintr(
file_) != 0) {
148 if (!previous_seek_failed_ && lseek(
file_,
count, SEEK_CUR) != (off_t)-1) {
156 previous_seek_failed_ =
true;
166 : copying_output_(file_descriptor),
impl_(©ing_output_, block_size) {}
187 :
file_(file_descriptor),
188 close_on_delete_(
false),
193 if (close_on_delete_) {
204 if (close_no_eintr(
file_) != 0) {
218 int total_written = 0;
222 while (total_written <
size) {
225 bytes = write(
file_, buffer_base + total_written,
size - total_written);
244 total_written +=
bytes;
253 : copying_input_(
input),
impl_(©ing_input_, block_size) {}
274 int result =
input_->gcount();
284 : copying_output_(
output),
impl_(©ing_output_, block_size) {}
313 : streams_(streams), stream_count_(
count), bytes_retired_(0) {
334 GOOGLE_LOG(DFATAL) <<
"Can't BackUp() after failed Next().";
349 count = target_byte_count - final_byte_count;
CopyingFileOutputStream copying_output_
bool Write(const void *buffer, int size) override
bool Next(void **data, int *size) override
CopyingFileOutputStream(int file_descriptor)
std::unique_ptr< io::Tokenizer > input_
OstreamOutputStream(std::ostream *stream, int block_size=-1)
void BackUp(int count) override
~CopyingOstreamOutputStream() override
bool Next(void **data, int *size) override
GLuint GLint GLboolean GLint GLenum access
bool Next(void **data, int *size) override
#define GOOGLE_LOG(LEVEL)
CopyingOutputStreamAdaptor impl_
void BackUp(int count) override
~FileOutputStream() override
static const LogLevel ERROR
#define GOOGLE_CHECK(EXPRESSION)
~OstreamOutputStream() override
int64 ByteCount() const override
void BackUp(int count) override
CopyingOstreamOutputStream(std::ostream *output)
int64 ByteCount() const override
char * strerror(int errno)
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
~CopyingFileOutputStream() override
const upb_json_parsermethod const upb_symtab upb_sink * output
FileDescriptorProto * file_
bool Write(const void *buffer, int size) override
FileOutputStream(int file_descriptor, int block_size=-1)
CopyingOutputStreamAdaptor impl_
int64 ByteCount() const override
libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:02