struct RPM::TagData::ReturnTypeInt16

Overview

UInt16 type for TagData

Included Modules

Defined in:

rpm/tagdata.cr

Instance Method Summary

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.


[View source]
def bytes? #
Description copied from struct RPM::TagData::ReturnType(UInt16)

Returns binary raw array of expecting type.

Returns nil if #fetch_ptr returns NULL.


[View source]
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


[View source]
def unsafe_fetch(index : Int) #
Description copied from struct RPM::TagData::ReturnType(UInt16)

:nodoc:


[View source]