abstract struct RPM::TagData::ReturnTypeBase
- RPM::TagData::ReturnTypeBase
- Struct
- Value
- Object
Overview
Base class of ReturnType
classes.
Direct Known Subclasses
- RPM::TagData::ReturnType(T)
- RPM::TagData::ReturnTypeBin
- RPM::TagData::ReturnTypeChar
- RPM::TagData::ReturnTypeInt8
- RPM::TagData::ReturnTypeString
Defined in:
rpm/tagdata.crConstructors
Instance Method Summary
-
#detach
Deallocates the tagdata.
-
#format(io : IO, index : Int, fmt : TagDataFormat)
#format
and write to IO -
#format(index : Int, fmt : TagDataFormat)
Format the TagData at current index in given format.
-
#format(io : IO, fmt : TagDataFormat)
Format the TagData to a string also represents array and empty TagData, and send to given IO.
-
#return_type
Returns the return type pf TagData
-
#size
Returns the number of elements in the tagdata.
-
#tag
Returns the tag value.
-
#tag=(tag : Tag | TagValue)
Sets tag value.
-
#to_a
Respond to
Indexable#to_a
- #to_unsafe : RPM::LibRPM::TagData
-
#type
Returns the type of TagData
-
#unsafe_fetch(index : Int)
Respond to
Indexable#unsafe_fetch
Constructor Detail
Instance Method Detail
def format(io : IO, fmt : TagDataFormat)
#
Format the TagData to a string also represents array and empty TagData, and send to given IO.
Sets tag value.
NOTE RPM allows to change tag value only to same type. If
not, this method raises TypeCastError
.