public class CrtResource extends Object implements AutoCloseable
Constructor and Description |
---|
CrtResource() |
Modifier and Type | Method and Description |
---|---|
protected void |
acquire(long _ptr) |
void |
close() |
static int |
getAllocatedNativeResourceCount() |
static Collection<String> |
getAllocatedNativeResources() |
boolean |
isNull() |
long |
native_ptr() |
<T extends CrtResource> |
own(T subresource)
Marks a SubResource as owned by this Resource.
|
protected long |
release() |
public static int getAllocatedNativeResourceCount()
public static Collection<String> getAllocatedNativeResources()
public <T extends CrtResource> T own(T subresource)
subresource
- The owned subresourceprotected void acquire(long _ptr)
protected long release()
public long native_ptr()
public boolean isNull()
public void close()
close
in interface AutoCloseable
Copyright © 2019. All rights reserved.