Package org.lwjgl.openvr
Class VRIOBuffer
java.lang.Object
org.lwjgl.openvr.VRIOBuffer
-
Method Summary
Modifier and TypeMethodDescriptionstatic intnVRIOBuffer_Open(long pchPath, int mode, int unElementSize, int unElements, long pulBuffer) Unsafe version of:Openstatic intnVRIOBuffer_Read(long ulBuffer, long pDst, int unBytes, long punRead) Unsafe version of:Readstatic intnVRIOBuffer_Write(long ulBuffer, long pSrc, int unBytes) Unsafe version of:Writestatic intVRIOBuffer_Close(long ulBuffer) Closes a previously opened or created buffer.static booleanVRIOBuffer_HasReaders(long ulBuffer) Inexpensively checks for readers to allow writers to fast-fail potentially expensive copies and writes.static intVRIOBuffer_Open(CharSequence pchPath, int mode, int unElementSize, int unElements, LongBuffer pulBuffer) Opens an existing or creates a newIOBufferofunSizebytes.static intVRIOBuffer_Open(ByteBuffer pchPath, int mode, int unElementSize, int unElements, LongBuffer pulBuffer) Opens an existing or creates a newIOBufferofunSizebytes.static longVRIOBuffer_PropertyContainer(long ulBuffer) Retrieves the property container of a buffer.static intVRIOBuffer_Read(long ulBuffer, ByteBuffer pDst, IntBuffer punRead) Reads up tounBytesfrom buffer into*pDst, returning number of bytes read in*punReadstatic intVRIOBuffer_Write(long ulBuffer, ByteBuffer pSrc) WritesunBytesof data from*pSrcinto a buffer.
-
Method Details
-
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(ByteBuffer pchPath, int mode, int unElementSize, int unElements, LongBuffer pulBuffer) Opens an existing or creates a newIOBufferofunSizebytes. -
VRIOBuffer_Open
public static int VRIOBuffer_Open(CharSequence pchPath, int mode, int unElementSize, int unElements, LongBuffer pulBuffer) Opens an existing or creates a newIOBufferofunSizebytes. -
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
Reads up tounBytesfrom 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
WritesunBytesof data from*pSrcinto 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.
-