Home
last modified time | relevance | path

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

/external/flatbuffers/include/flatbuffers/
Dgrpc.h84 class SliceAllocator : public Allocator {
86 SliceAllocator() : slice_(grpc_empty_slice()) {} in SliceAllocator() function
88 SliceAllocator(const SliceAllocator &other) = delete;
89 SliceAllocator &operator=(const SliceAllocator &other) = delete;
91 SliceAllocator(SliceAllocator &&other) : slice_(grpc_empty_slice()) { in SliceAllocator() function
96 SliceAllocator &operator=(SliceAllocator &&other) {
98 SliceAllocator temp(std::move(other));
103 void swap(SliceAllocator &other) { in swap()
108 virtual ~SliceAllocator() { grpc_slice_unref(slice_); } in ~SliceAllocator()
156 SliceAllocator slice_allocator_;
/external/flatbuffers/grpc/tests/
Dmessage_builder_test.cpp175 flatbuffers::grpc::SliceAllocator sa1; in slice_allocator_tests()
180 flatbuffers::grpc::SliceAllocator sa2(std::move(sa1)); in slice_allocator_tests()
189 flatbuffers::grpc::SliceAllocator sa1, sa2; in slice_allocator_tests()