# File lib/nice-ffi/typedpointer.rb, line 82 def unwrap( struct ) unless struct.is_a? @type raise TypeError, "#{self.class}[ #{@type} ] cannot unwrap #{struct.type}" end struct.to_ptr end