#include <google/protobuf/io/zero_copy_stream_impl_lite.h>
#include <algorithm>
#include <limits>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/logging.h>
#include <google/protobuf/stubs/casts.h>
#include <google/protobuf/stubs/stl_util.h>
namespace google {
namespace protobuf {
namespace io {
namespace {
static const int kDefaultBlockSize = …;
}
ArrayInputStream::ArrayInputStream(const void* data, int size, int block_size)
: … { … }
bool ArrayInputStream::Next(const void** data, int* size) { … }
void ArrayInputStream::BackUp(int count) { … }
bool ArrayInputStream::Skip(int count) { … }
int64_t ArrayInputStream::ByteCount() const { … }
ArrayOutputStream::ArrayOutputStream(void* data, int size, int block_size)
: … { … }
bool ArrayOutputStream::Next(void** data, int* size) { … }
void ArrayOutputStream::BackUp(int count) { … }
int64_t ArrayOutputStream::ByteCount() const { … }
StringOutputStream::StringOutputStream(std::string* target) : … { … }
bool StringOutputStream::Next(void** data, int* size) { … }
void StringOutputStream::BackUp(int count) { … }
int64_t StringOutputStream::ByteCount() const { … }
int CopyingInputStream::Skip(int count) { … }
CopyingInputStreamAdaptor::CopyingInputStreamAdaptor(
CopyingInputStream* copying_stream, int block_size)
: … { … }
CopyingInputStreamAdaptor::~CopyingInputStreamAdaptor() { … }
bool CopyingInputStreamAdaptor::Next(const void** data, int* size) { … }
void CopyingInputStreamAdaptor::BackUp(int count) { … }
bool CopyingInputStreamAdaptor::Skip(int count) { … }
int64_t CopyingInputStreamAdaptor::ByteCount() const { … }
void CopyingInputStreamAdaptor::AllocateBufferIfNeeded() { … }
void CopyingInputStreamAdaptor::FreeBuffer() { … }
CopyingOutputStreamAdaptor::CopyingOutputStreamAdaptor(
CopyingOutputStream* copying_stream, int block_size)
: … { … }
CopyingOutputStreamAdaptor::~CopyingOutputStreamAdaptor() { … }
bool CopyingOutputStreamAdaptor::Flush() { … }
bool CopyingOutputStreamAdaptor::Next(void** data, int* size) { … }
void CopyingOutputStreamAdaptor::BackUp(int count) { … }
int64_t CopyingOutputStreamAdaptor::ByteCount() const { … }
bool CopyingOutputStreamAdaptor::WriteAliasedRaw(const void* data, int size) { … }
bool CopyingOutputStreamAdaptor::WriteBuffer() { … }
void CopyingOutputStreamAdaptor::AllocateBufferIfNeeded() { … }
void CopyingOutputStreamAdaptor::FreeBuffer() { … }
LimitingInputStream::LimitingInputStream(ZeroCopyInputStream* input,
int64_t limit)
: … { … }
LimitingInputStream::~LimitingInputStream() { … }
bool LimitingInputStream::Next(const void** data, int* size) { … }
void LimitingInputStream::BackUp(int count) { … }
bool LimitingInputStream::Skip(int count) { … }
int64_t LimitingInputStream::ByteCount() const { … }
}
}
}