# File lib/gpgme/io_callbacks.rb, line 3 def initialize(io) @io = io end
# File lib/gpgme/io_callbacks.rb, line 7 def read(hook, length) @io.read(length) end
# File lib/gpgme/io_callbacks.rb, line 15 def seek(hook, offset, whence) return @io.pos if offset == 0 && whence == IO::SEEK_CUR @io.seek(offset, whence) @io.pos end
# File lib/gpgme/io_callbacks.rb, line 11 def write(hook, buffer, length) @io.write(buffer[0 .. length]) end