Home
last modified time | relevance | path

Searched refs:BinaryWireProtobuf (Results 1 – 2 of 2) sorted by relevance

/system/iorap/src/perfetto/
Drx_producer.h83 struct BinaryWireProtobuf { struct
99 explicit BinaryWireProtobuf(char* data, size_t size) in BinaryWireProtobuf() argument
100 : BinaryWireProtobuf(reinterpret_cast<std::byte*>(data), size) { in BinaryWireProtobuf()
103 explicit BinaryWireProtobuf(std::byte* data, size_t size) { in BinaryWireProtobuf() function
110 explicit BinaryWireProtobuf(std::vector<std::byte> data) : data_{std::move(data)} { in BinaryWireProtobuf() function
115 BinaryWireProtobuf(const BinaryWireProtobuf& other) = default;
116 BinaryWireProtobuf(BinaryWireProtobuf&& other) = default;
134 static std::optional<BinaryWireProtobuf<T>> ReadFullyFromFile(const std::string& path, argument
137 bool operator==(const BinaryWireProtobuf<T>& other) const;
138 bool operator!=(const BinaryWireProtobuf<T>& other) const {
[all …]
Drx_producer.cc541 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