31 using buffer_type =
typename ViewType<char, 1, Properties...>::view_type;
32 using pointer_type =
typename buffer_type::pointer_type;
40 template <
typename T,
class... ViewArgs>
41 void serialize(
const Kokkos::View<T*, ViewArgs...>& view, size_type nsends);
51 template <
typename T,
unsigned Dim,
class... ViewArgs>
59 template <
typename T,
class... ViewArgs>
60 void deserialize(Kokkos::View<T*, ViewArgs...>& view, size_type nrecvs);
70 template <
typename T,
unsigned Dim,
class... ViewArgs>
76 pointer_type
getBuffer() {
return buffer_m.data(); }
81 size_type
getSize()
const {
return writepos_m; }
83 size_type getBufferSize()
const {
return buffer_m.size(); }
85 void resizeBuffer(size_type size) { Kokkos::resize(buffer_m, size); }
87 void reallocBuffer(size_type size) { Kokkos::realloc(buffer_m, size); }
89 void resetWritePos() { writepos_m = 0; }
90 void resetReadPos() { readpos_m = 0; }
100 buffer_type buffer_m;