Class: FFI::Struct
- Inherits:
-
Object
show all
- Defined in:
- lib/ffi-libav.rb
Direct Known Subclasses
Libav::AVBitStreamFilter, Libav::AVBitStreamFilterContext, Libav::AVChapter, Libav::AVCodec, Libav::AVCodecContext, Libav::AVCodecDescriptor, Libav::AVCodecParser, Libav::AVCodecParserContext, Libav::AVFormatContext, Libav::AVFrac, Libav::AVFrame, Libav::AVHWAccel, Libav::AVIOContext, Libav::AVIOInterruptCB, Libav::AVIndexEntry, Libav::AVInputFormat, Libav::AVOutputFormat, Libav::AVPacket, Libav::AVPacketList, Libav::AVPacketSideData, Libav::AVPanScan, Libav::AVPicture, Libav::AVProbeData, Libav::AVProfile, Libav::AVProgram, Libav::AVRational, Libav::AVStream, Libav::AVStreamInfo, Libav::AVSubtitle, Libav::AVSubtitleRect, Libav::RcOverride, Libav::SwsFilter, Libav::SwsVector
Instance Method Summary
collapse
Instance Method Details
#to_hash ⇒ Object
37
38
39
40
41
|
# File 'lib/ffi-libav.rb', line 37
def to_hash
return {} if pointer.null?
members.inject({}) { |h,k| h[k] = send(:[], k); h }
end
|
#to_hexdump ⇒ Object
43
44
45
|
# File 'lib/ffi-libav.rb', line 43
def to_hexdump
self.pointer.read_bytes(self.size).hexdump
end
|