Class: Idevice::C::ManagedOpaquePointer
- Inherits:
-
FFI::AutoPointer
- Object
- FFI::AutoPointer
- Idevice::C::ManagedOpaquePointer
- Defined in:
- lib/idevice/c.rb
Direct Known Subclasses
AFCClient, DiagnosticsRelayClient, FileRelayClient, HeartbeatClient, HouseArrestClient, Idevice, IdeviceConnection, ImageMounterClient, InstProxyClient, LockdownClient, MisAgentClient, MobileBackup2Client, MobileBackupClient, MobileSyncClient, NotificationProxyClient, Plist_t, RestoreClient, SbservicesClient, ScreenShotrClient, WebInspectorClient
Instance Method Summary collapse
-
#initialize(pointer) ⇒ ManagedOpaquePointer
constructor
A new instance of ManagedOpaquePointer.
Constructor Details
#initialize(pointer) ⇒ ManagedOpaquePointer
Returns a new instance of ManagedOpaquePointer.
109 110 111 112 113 |
# File 'lib/idevice/c.rb', line 109 def initialize(pointer) raise NoMethodError, "release() not implemented for class #{self}" unless self.class.respond_to? :release raise ArgumentError, "Must supply a pointer to memory" unless pointer super(pointer, self.class.method(:release)) end |