abstract struct RPM::TagData::ReturnTypeBase

Overview

Base class of ReturnType classes.

Direct Known Subclasses

Defined in:

rpm/tagdata.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def detach #

Deallocates the tagdata.

This method modifies self.


[View source]
def format(io : IO, index : Int, fmt : TagDataFormat) #

#format and write to IO


[View source]
def format(index : Int, fmt : TagDataFormat) #

Format the TagData at current index in given format.


[View source]
def format(io : IO, fmt : TagDataFormat) #

Format the TagData to a string also represents array and empty TagData, and send to given IO.


[View source]
def return_type #

Returns the return type pf TagData


[View source]
def size #

Returns the number of elements in the tagdata.


[View source]
def tag #

Returns the tag value.


[View source]
def tag=(tag : Tag | TagValue) #

Sets tag value.

NOTE RPM allows to change tag value only to same type. If not, this method raises TypeCastError.


[View source]
abstract def to_a #

Respond to Indexable#to_a


[View source]
def to_unsafe : RPM::LibRPM::TagData #

[View source]
def type #

Returns the type of TagData


[View source]
abstract def unsafe_fetch(index : Int) #

Respond to Indexable#unsafe_fetch


[View source]