Public Member Functions | List of all members
rmm::mr::detail::arena::byte_span Class Reference

Represents a contiguous region of memory. More...

#include <arena.hpp>

Inheritance diagram for rmm::mr::detail::arena::byte_span:
Inheritance graph
[legend]

Public Member Functions

 byte_span ()=default
 Construct a default span.
 
 byte_span (void *pointer, std::size_t size)
 Construct a span given a pointer and size. More...
 
char * pointer () const
 Returns the underlying pointer.
 
std::size_t size () const
 Returns the size of the span.
 
char * end () const
 Returns the end of the span.
 
bool is_valid () const
 Returns true if this span is valid (non-null), false otherwise.
 
bool operator< (byte_span const &span) const
 Used by std::set to compare spans.
 

Detailed Description

Represents a contiguous region of memory.

Constructor & Destructor Documentation

◆ byte_span()

rmm::mr::detail::arena::byte_span::byte_span ( void *  pointer,
std::size_t  size 
)
inline

Construct a span given a pointer and size.

Parameters
pointerThe address for the beginning of the span.
sizeThe size of the span.

The documentation for this class was generated from the following file: