#include <grpc.h>
|
void | memcpy_downward (uint8_t *old_p, size_t old_size, uint8_t *new_p, size_t new_size, size_t in_use_back, size_t in_use_front) |
|
Definition at line 87 of file grpc.h.
◆ SliceAllocator() [1/3]
flatbuffers::grpc::SliceAllocator::SliceAllocator |
( |
| ) |
|
|
inline |
Definition at line 90 of file grpc.h.
90: slice_(grpc_empty_slice()) {}
◆ SliceAllocator() [2/3]
flatbuffers::grpc::SliceAllocator::SliceAllocator |
( |
const SliceAllocator & |
other | ) |
|
|
delete |
◆ SliceAllocator() [3/3]
flatbuffers::grpc::SliceAllocator::SliceAllocator |
( |
SliceAllocator && |
other | ) |
|
|
inline |
Definition at line 95 of file grpc.h.
95 : slice_(grpc_empty_slice())
96 {
97
99 }
void swap(SliceAllocator &other)
References swap().
◆ ~SliceAllocator()
virtual flatbuffers::grpc::SliceAllocator::~SliceAllocator |
( |
| ) |
|
|
inlinevirtual |
Definition at line 115 of file grpc.h.
115{ grpc_slice_unref(slice_); }
◆ allocate()
virtual uint8_t * flatbuffers::grpc::SliceAllocator::allocate |
( |
size_t |
size | ) |
|
|
inlineoverridevirtual |
◆ deallocate()
virtual void flatbuffers::grpc::SliceAllocator::deallocate |
( |
uint8_t * |
p, |
|
|
size_t |
size |
|
) |
| |
|
inlineoverridevirtual |
◆ operator=() [1/2]
◆ operator=() [2/2]
Definition at line 101 of file grpc.h.
102 {
103
106 return *this;
107 }
References swap().
◆ reallocate_downward()
virtual uint8_t * flatbuffers::grpc::SliceAllocator::reallocate_downward |
( |
uint8_t * |
old_p, |
|
|
size_t |
old_size, |
|
|
size_t |
new_size, |
|
|
size_t |
in_use_back, |
|
|
size_t |
in_use_front |
|
) |
| |
|
inlineoverridevirtual |
Reimplemented from flatbuffers::Allocator.
Definition at line 132 of file grpc.h.
134 {
138 grpc_slice old_slice = slice_;
139 grpc_slice new_slice = grpc_slice_malloc(new_size);
140 uint8_t *new_p = GRPC_SLICE_START_PTR(new_slice);
141 memcpy_downward(old_p, old_size, new_p, new_size, in_use_back, in_use_front);
142 slice_ = new_slice;
143 grpc_slice_unref(old_slice);
144 return new_p;
145 }
void memcpy_downward(uint8_t *old_p, size_t old_size, uint8_t *new_p, size_t new_size, size_t in_use_back, size_t in_use_front)
References FLATBUFFERS_ASSERT, and flatbuffers::Allocator::memcpy_downward().
◆ swap()
void flatbuffers::grpc::SliceAllocator::swap |
( |
SliceAllocator & |
other | ) |
|
|
inline |
◆ MessageBuilder
The documentation for this class was generated from the following file:
- onert-micro/externals/flatbuffers/grpc.h