Searched refs:BinaryWireProtobuf (Results 1 – 2 of 2) sorted by relevance
83 struct BinaryWireProtobuf { struct99 explicit BinaryWireProtobuf(char* data, size_t size) in BinaryWireProtobuf() argument100 : BinaryWireProtobuf(reinterpret_cast<std::byte*>(data), size) { in BinaryWireProtobuf()103 explicit BinaryWireProtobuf(std::byte* data, size_t size) { in BinaryWireProtobuf() function110 explicit BinaryWireProtobuf(std::vector<std::byte> data) : data_{std::move(data)} { in BinaryWireProtobuf() function115 BinaryWireProtobuf(const BinaryWireProtobuf& other) = default;116 BinaryWireProtobuf(BinaryWireProtobuf&& other) = default;134 static std::optional<BinaryWireProtobuf<T>> ReadFullyFromFile(const std::string& path, argument137 bool operator==(const BinaryWireProtobuf<T>& other) const;138 bool operator!=(const BinaryWireProtobuf<T>& other) const {[all …]
541 bool BinaryWireProtobuf<T>::WriteFullyToFile(const std::string& path, in WriteFullyToFile()570 bool BinaryWireProtobuf<T>::CleanUpAfterFailedWrite(const std::string& path) { in CleanUpAfterFailedWrite()579 bool BinaryWireProtobuf<T>::WriteStringToFd(int fd) const { in WriteStringToFd()594 std::optional<BinaryWireProtobuf<T>> BinaryWireProtobuf<T>::ReadFullyFromFile( in ReadFullyFromFile()606 return BinaryWireProtobuf<T>{std::move(data)}; in ReadFullyFromFile()613 bool BinaryWireProtobuf<T>::operator==(const BinaryWireProtobuf<T>& other) const { in operator ==()621 bool BinaryWireProtobuf<T>::ReadFdToString(int fd, /*out*/std::vector<std::byte>* content) { in ReadFdToString()647 template struct BinaryWireProtobuf<::google::protobuf::MessageLite>; variable