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

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

Detailed Description

stores offset and size used to indicate a byte range

Definition at line 36 of file byte_range_info.hpp.

Constructor & Destructor Documentation

◆ byte_range_info() [1/2]

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

Constructs a byte_range_info object.

Parameters
offsetoffset in bytes
sizesize in bytes

◆ byte_range_info() [2/2]

cudf::io::text::byte_range_info::byte_range_info ( byte_range_info const &  other)
defaultnoexcept

Copy constructor.

Parameters
otherbyte_range_info object to copy

Member Function Documentation

◆ is_empty()

bool cudf::io::text::byte_range_info::is_empty ( ) const
inline

Returns whether the span is empty.

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

Definition at line 84 of file byte_range_info.hpp.

◆ offset()

int64_t cudf::io::text::byte_range_info::offset ( ) const
inline

Get the offset in bytes.

Returns
Offset in bytes

Definition at line 70 of file byte_range_info.hpp.

◆ operator=()

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

Copy assignment operator.

Parameters
otherbyte_range_info object to copy
Returns
this object after copying

◆ size()

int64_t cudf::io::text::byte_range_info::size ( ) const
inline

Get the size in bytes.

Returns
Size in bytes

Definition at line 77 of file byte_range_info.hpp.


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