44 case 0:
return kTypeFile;
45 case 1:
return kTypeDAOS;
46 case 2:
return kTypePageZero;
47 case 3:
return kTypeUnknown;
75 if (GetType() != kTypeFile)
76 throw RException(
R__FAIL(
"cannot set position as 64bit offset for type " + std::to_string(GetType())));
82 if (GetType() != kTypeDAOS)
83 throw RException(
R__FAIL(
"cannot set position as 64bit object for type " + std::to_string(GetType())));
90 throw RException(
R__FAIL(
"cannot retrieve position as 64bit offset for type " + std::to_string(
loc.GetType())));
98 throw RException(
R__FAIL(
"cannot retrieve position as 64bit object for type " + std::to_string(
loc.GetType())));
99 return RNTupleLocatorObject64{
loc.fPosition};
#define R__FAIL(msg)
Short-hand to return an RResult<T> in an error state; the RError is implicitly converted into RResult...
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
#define R__ASSERT(e)
Checks condition e and reports a fatal error if it's false.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t type
Base class for all ROOT issued exceptions.
RNTupleLocator payload that is common for object stores using 64bit location information.
std::uint64_t GetLocation() const
Generic information about the physical location of data.
ELocatorType
Values for the Type field in non-disk locators.
std::uint64_t fFlagsAndNBytes
To save memory, we use the most significant bits to store the locator type (file, DAOS,...
ELocatorType GetType() const
For non-disk locators, the value for the Type field.
void SetType(ELocatorType type)
void SetPosition(std::uint64_t position)
void SetReserved(std::uint8_t reserved)
See GetReserved(): we ignore the reserved flag since we don't use it anywhere currently.
void SetNBytesOnStorage(std::uint64_t nBytesOnStorage)
constexpr RNTupleLocator::ELocatorType kTestLocatorType