| 176 | /**/ |
| 177 | return m_capacity; |
| 178 | } |
| 179 | |
| 180 | void Buf::Clone(const Buf& a_buf) { |
| 181 | ExternalMemory::Copy(m_owned_p, a_buf.m_active_p, a_buf.m_off); |
| 182 | m_off = a_buf.m_off; |
| 183 | m_active_p = m_owned_p; |
| 184 | } |
| 185 | |
| 186 | /*---------------------------------------------------------------------------------------------------------------------\ |
| 187 | * Specialization |
| 188 | \---------------------------------------------------------------------------------------------------------------------*/ |
| 189 | // clang-format off |
| 190 | template const ofs_t* Buf::data<ofs_t>(); |
| 191 | template uint32_t* Buf::mutable_data<uint32_t>(); |
| 192 | template uint64_t* Buf::mutable_data<uint64_t>(); |
| 193 | |
| 194 | } // namespace fastlanes |