Slightly more elegant solution to onGetData and onSeek callbacks. Should
be easier to adapt to proper delegate support.