APIdia Launch Partner
Top Description Fields Constructors Methods
sun.nio.fs

pack-priv Class NativeBuffer

extends Object
implements AutoCloseable
Class Inheritance
All Implemented Interfaces
java.lang.AutoCloseable
Imports
jdk.internal.misc.Unsafe

A light-weight buffer in native memory.

Field Summary

Modifier and TypeField and Description
private final long
private Object
private long
private final int
private static final Unsafe

Constructor Summary

AccessConstructor and Description
pack-priv
NativeBuffer(int size)

Method Summary

Modifier and TypeMethod and Description
pack-priv long
public void
close()

Implements java.lang.AutoCloseable.close.

Closes this resource, relinquishing any underlying resources.

pack-priv void
free()

pack-priv Object
pack-priv void
pack-priv void
pack-priv int
size()

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

addressback to summary
private final long address
ownerback to summary
private Object owner
ownerTidback to summary
private long ownerTid
sizeback to summary
private final int size
unsafeback to summary
private static final Unsafe unsafe

Constructor Detail

NativeBufferback to summary
pack-priv NativeBuffer(int size)

Method Detail

addressback to summary
pack-priv long address()
closeback to summary
public void close()

Implements java.lang.AutoCloseable.close.

Doc from java.lang.AutoCloseable.close.

Closes this resource, relinquishing any underlying resources. This method is invoked automatically on objects managed by the try-with-resources statement.

Annotations
@Override
freeback to summary
pack-priv void free()
ownerback to summary
pack-priv Object owner()
releaseback to summary
pack-priv void release()
setOwnerback to summary
pack-priv void setOwner(Object owner)
sizeback to summary
pack-priv int size()