struct RPM::TagData::ReturnTypeInt16
- RPM::TagData::ReturnTypeInt16
- RPM::TagData::ReturnType(UInt16)
- RPM::TagData::ReturnTypeBase
- Struct
- Value
- Object
Overview
UInt16 type for TagData
Included Modules
Defined in:
rpm/tagdata.crInstance Method Summary
-
#bytes
Returns binary raw array of expecting type.
-
#bytes?
Returns binary raw array of expecting type.
-
#to_a
Returns the array of values using
#bytes
-
#unsafe_fetch(index : Int)
:nodoc:
Instance methods inherited from struct RPM::TagData::ReturnType(UInt16)
bytes : Slice(T)
bytes,
bytes? : Slice(T)?
bytes?,
fetch_ptr : Pointer(T)
fetch_ptr,
to_a : Array(T)
to_a
Instance methods inherited from struct RPM::TagData::ReturnTypeBase
detach
detach,
format(io : IO, index : Int, fmt : TagDataFormat)format(index : Int, fmt : TagDataFormat)
format(io : IO, fmt : TagDataFormat) format, return_type return_type, size size, tag tag, tag=(tag : Tag | TagValue) tag=, to_a to_a, to_unsafe : RPM::LibRPM::TagData to_unsafe, type type, unsafe_fetch(index : Int) unsafe_fetch
Constructor methods inherited from struct RPM::TagData::ReturnTypeBase
new
new
Instance Method Detail
def bytes
#
Description copied from struct RPM::TagData::ReturnType(UInt16)
Returns binary raw array of expecting type.
Raises NilAssertionError
if #fetch_ptr
returns NULL
.
def bytes?
#
Description copied from struct RPM::TagData::ReturnType(UInt16)
Returns binary raw array of expecting type.
Returns nil
if #fetch_ptr
returns NULL
.
def to_a
#
Description copied from struct RPM::TagData::ReturnType(UInt16)
Returns the array of values using #bytes
This may be faster than Indexable#to_a
def unsafe_fetch(index : Int)
#
Description copied from struct RPM::TagData::ReturnType(UInt16)
:nodoc: