Public Member Functions | List of all members
cudf::io::text::byte_range_info Class Reference

stores offset and size used to indicate a byte range More...

#include <byte_range_info.hpp>

Public Member Functions

constexpr byte_range_info (int64_t offset, int64_t size)
 Constructs a byte_range_info object. More...
 
constexpr byte_range_info (byte_range_info const &other) noexcept=default
 Copy constructor. More...
 
constexpr byte_range_infooperator= (byte_range_info const &other) noexcept=default
 Copy assignment operator. More...
 
constexpr int64_t offset ()
 Get the offset in bytes. More...
 
constexpr int64_t size ()
 Get the size in bytes. More...
 
constexpr bool empty ()
 Returns whether the span is empty. More...
 

Detailed Description

stores offset and size used to indicate a byte range

Definition at line 37 of file byte_range_info.hpp.

Constructor & Destructor Documentation

◆ byte_range_info() [1/2]

constexpr cudf::io::text::byte_range_info::byte_range_info ( int64_t  offset,
int64_t  size 
)
inlineconstexpr

Constructs a byte_range_info object.

Parameters
offsetoffset in bytes
sizesize in bytes

Definition at line 50 of file byte_range_info.hpp.

◆ byte_range_info() [2/2]

constexpr cudf::io::text::byte_range_info::byte_range_info ( byte_range_info const &  other)
constexprdefaultnoexcept

Copy constructor.

Parameters
otherbyte_range_info object to copy

Member Function Documentation

◆ empty()

constexpr bool cudf::io::text::byte_range_info::empty ( )
inlineconstexpr

Returns whether the span is empty.

Returns
true iff the span is empty, i.e. size() == 0

Definition at line 89 of file byte_range_info.hpp.

◆ offset()

constexpr int64_t cudf::io::text::byte_range_info::offset ( )
inlineconstexpr

Get the offset in bytes.

Returns
Offset in bytes

Definition at line 75 of file byte_range_info.hpp.

◆ operator=()

constexpr byte_range_info& cudf::io::text::byte_range_info::operator= ( byte_range_info const &  other)
constexprdefaultnoexcept

Copy assignment operator.

Parameters
otherbyte_range_info object to copy
Returns
this object after copying

◆ size()

constexpr int64_t cudf::io::text::byte_range_info::size ( )
inlineconstexpr

Get the size in bytes.

Returns
Size in bytes

Definition at line 82 of file byte_range_info.hpp.


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