Package org.lwjgl.openvr
Class VRIOBuffer
- java.lang.Object
-
- org.lwjgl.openvr.VRIOBuffer
-
public class VRIOBuffer extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
nVRIOBuffer_Open(long pchPath, int mode, int unElementSize, int unElements, long pulBuffer)
Unsafe version of:Open
static int
nVRIOBuffer_Read(long ulBuffer, long pDst, int unBytes, long punRead)
Unsafe version of:Read
static int
nVRIOBuffer_Write(long ulBuffer, long pSrc, int unBytes)
Unsafe version of:Write
static int
VRIOBuffer_Close(long ulBuffer)
Closes a previously opened or created buffer.static boolean
VRIOBuffer_HasReaders(long ulBuffer)
Inexpensively checks for readers to allow writers to fast-fail potentially expensive copies and writes.static int
VRIOBuffer_Open(java.lang.CharSequence pchPath, int mode, int unElementSize, int unElements, java.nio.LongBuffer pulBuffer)
Opens an existing or creates a newIOBuffer
ofunSize
bytes.static int
VRIOBuffer_Open(java.nio.ByteBuffer pchPath, int mode, int unElementSize, int unElements, java.nio.LongBuffer pulBuffer)
Opens an existing or creates a newIOBuffer
ofunSize
bytes.static long
VRIOBuffer_PropertyContainer(long ulBuffer)
Retrieves the property container of a buffer.static int
VRIOBuffer_Read(long ulBuffer, java.nio.ByteBuffer pDst, java.nio.IntBuffer punRead)
Reads up tounBytes
from buffer into*pDst
, returning number of bytes read in*punRead
static int
VRIOBuffer_Write(long ulBuffer, java.nio.ByteBuffer pSrc)
WritesunBytes
of data from*pSrc
into a buffer.
-
-
-
Method Detail
-
nVRIOBuffer_Open
public static int nVRIOBuffer_Open(long pchPath, int mode, int unElementSize, int unElements, long pulBuffer)
Unsafe version of:Open
-
VRIOBuffer_Open
public static int VRIOBuffer_Open(java.nio.ByteBuffer pchPath, int mode, int unElementSize, int unElements, java.nio.LongBuffer pulBuffer) public static int VRIOBuffer_Open(java.lang.CharSequence pchPath, int mode, int unElementSize, int unElements, java.nio.LongBuffer pulBuffer)
Opens an existing or creates a newIOBuffer
ofunSize
bytes.
-
VRIOBuffer_Close
public static int VRIOBuffer_Close(long ulBuffer)
Closes a previously opened or created buffer.
-
nVRIOBuffer_Read
public static int nVRIOBuffer_Read(long ulBuffer, long pDst, int unBytes, long punRead)
Unsafe version of:Read
-
VRIOBuffer_Read
public static int VRIOBuffer_Read(long ulBuffer, java.nio.ByteBuffer pDst, java.nio.IntBuffer punRead)
Reads up tounBytes
from buffer into*pDst
, returning number of bytes read in*punRead
-
nVRIOBuffer_Write
public static int nVRIOBuffer_Write(long ulBuffer, long pSrc, int unBytes)
Unsafe version of:Write
-
VRIOBuffer_Write
public static int VRIOBuffer_Write(long ulBuffer, java.nio.ByteBuffer pSrc)
WritesunBytes
of data from*pSrc
into a buffer.
-
VRIOBuffer_PropertyContainer
public static long VRIOBuffer_PropertyContainer(long ulBuffer)
Retrieves the property container of a buffer.
-
VRIOBuffer_HasReaders
public static boolean VRIOBuffer_HasReaders(long ulBuffer)
Inexpensively checks for readers to allow writers to fast-fail potentially expensive copies and writes.
-
-