google_protobuf_compat.h#
-
namespace google#
-
namespace protobuf#
Typedefs
-
template<typename T>
using RepeatedField = onnx_light::utils::RepeatedField<T>#
-
template<typename T>
using RepeatedPtrField = onnx_light::utils::RepeatedProtoField<T>#
-
template<typename T>
using RepeatedFieldBackInsertIterator = onnx_light::utils::RepeatedFieldBackInsertIterator<T># Output iterator that appends to a RepeatedField via push_back. onnx-light provides the concrete implementation; this is a pure alias.
Functions
-
template<typename T>
RepeatedFieldBackInsertIterator<T> RepeatedFieldBackInserter(RepeatedField<T> *field)# Creates a back-insert iterator for a RepeatedField.
-
inline void ShutdownProtobufLibrary()#
No-op: onnx-light has no global protobuf state to shut down.
-
template<typename Msg>
inline bool ParseDelimitedFromCodedStream(Msg *message, io::CodedInputStream *input, bool *clean_eof)# Parses a length-delimited message from a CodedInputStream. Reads a varint32 size prefix, then exactly that many bytes, and parses them into message via ParseFromArray. Sets *clean_eof to true if the stream was at EOF before any bytes were read.
-
namespace internal#
Typedefs
-
template<typename T>
struct RepeatedPtrIteratorHelper<T, false># - #include <google_protobuf_compat.h>
Public Types
-
using type = typename onnx_light::utils::RepeatedProtoField<T>::iterator#
-
using type = typename onnx_light::utils::RepeatedProtoField<T>::iterator#
-
template<typename T>
struct RepeatedPtrIteratorHelper<T, true># - #include <google_protobuf_compat.h>
Public Types
-
using type = typename onnx_light::utils::RepeatedProtoField<std::remove_const_t<T>>::const_iterator#
-
using type = typename onnx_light::utils::RepeatedProtoField<std::remove_const_t<T>>::const_iterator#
-
template<typename T>
-
namespace io#
Typedefs
-
using ArrayInputStream = onnx_light::utils::StringStream#
Zero-copy input stream over an in-memory buffer. onnx-light’s StringStream (a concrete BinaryStream) implements the protobuf ZeroCopyInputStream interface and accepts a (const void*, int) buffer.
-
using CodedInputStream = onnx_light::utils::CodedInputStream#
Minimal coded input stream wrapping a BinaryStream (ArrayInputStream, FileInputStream, etc.).
-
using StringOutputStream = onnx_light::utils::StdStringWriteStream#
Zero-copy output stream that appends to a std::string.
-
using FileOutputStream = onnx_light::utils::FdWriteStream#
Zero-copy output stream wrapping a file descriptor.
-
using FileInputStream = onnx_light::utils::FdReadStream#
Zero-copy input stream wrapping a file descriptor.
-
using IstreamInputStream = onnx_light::utils::IstreamStream#
Zero-copy input stream that owns a copy of a std::istream’s contents.
-
using OstreamOutputStream = onnx_light::utils::OstreamWriteStream#
Zero-copy output stream wrapping a std::ostream.
-
using ArrayInputStream = onnx_light::utils::StringStream#
-
template<typename T>
-
namespace protobuf#