class FFI::Struct

Public Instance Methods

to_hash() click to toggle source
# 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() click to toggle source
# File lib/ffi-libav.rb, line 43
def to_hexdump
  self.pointer.read_bytes(self.size).hexdump
end