class RbSDL2::RWOperator::SeekCallback

Public Class Methods

new(obj) click to toggle source
Calls superclass method
# File lib/rb_sdl2/rw_ops/rw_operator.rb, line 38
def initialize(obj)
  # Sint64 (* seek) (struct SDL_RWops * context, Sint64 offset, int whence);
  super(:int64, [:pointer, :int64, :int]) do |_context, offset, whence|
    obj.seek(offset, whence) rescue -1
  end
end