1#ifndef ANDROID_PDX_RPC_MESSAGE_BUFFER_H_ 2#define ANDROID_PDX_RPC_MESSAGE_BUFFER_H_ 3 4#include <pdx/rpc/thread_local_buffer.h> 5 6namespace android { 7namespace pdx { 8namespace rpc { 9 10// Utility type for thread-local buffers, providing suitable defaults for most 11// situations. Independent thread-local buffers may be created by using 12// different types for Slot -- ThreadLocalSlot, ThreadLocalTypedSlot and 13// ThreadLocalIndexedSlot provide utilities for building these types. 14template <typename Slot, std::size_t Capacity = 4096, typename T = std::uint8_t, 15 typename Allocator = DefaultInitializationAllocator<T>> 16using MessageBuffer = ThreadLocalBuffer<T, Allocator, Capacity, Slot>; 17 18} // namespace rpc 19} // namespace pdx 20} // namespace android 21 22#endif // ANDROID_PDX_RPC_MESSAGE_BUFFER_H_ 23