PointerBuffer

Factory methods to create direct buffers from valid memory pointers.

All buffers created by the methods of this object are direct buffers with the native byte order of the platform.

class Object
trait Matchable
class Any

Value members

Concrete methods

def wrap(ptr: Ptr[Byte], size: Int): ByteBuffer

Wraps a scala.scalanative.unsafe.Ptr pointing to memory of given size expressed in number of bytes, in a direct ByteBuffer

Wraps a scala.scalanative.unsafe.Ptr pointing to memory of given size expressed in number of bytes, in a direct ByteBuffer