Top Constructors Methods
org.lwjgl.openvr

public Class VRIOBuffer

extends Object
Class Inheritance
Imports
java.nio.*, org.lwjgl.system.*

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static int
nVRIOBuffer_Open(long pchPath, int mode, int unElementSize, int unElements, long pulBuffer)

Unsafe version of: Open

public static int
nVRIOBuffer_Read(long ulBuffer, long pDst, int unBytes, long punRead)

Unsafe version of: Read

public static int
nVRIOBuffer_Write(long ulBuffer, long pSrc, int unBytes)

Unsafe version of: Write

public static int
VRIOBuffer_Close(long ulBuffer)

Closes a previously opened or created buffer.

public static boolean
VRIOBuffer_HasReaders(long ulBuffer)

Inexpensively checks for readers to allow writers to fast-fail potentially expensive copies and writes.

public static int
VRIOBuffer_Open(ByteBuffer pchPath, int mode, int unElementSize, int unElements, LongBuffer pulBuffer)

Opens an existing or creates a new IOBuffer of unSize bytes.

public static int
VRIOBuffer_Open(CharSequence pchPath, int mode, int unElementSize, int unElements, LongBuffer pulBuffer)

Opens an existing or creates a new IOBuffer of unSize bytes.

public static long
VRIOBuffer_PropertyContainer(long ulBuffer)

Retrieves the property container of a buffer.

public static int
VRIOBuffer_Read(long ulBuffer, ByteBuffer pDst, IntBuffer punRead)

Reads up to unBytes from buffer into *pDst, returning number of bytes read in *punRead

public static int
VRIOBuffer_Write(long ulBuffer, ByteBuffer pSrc)

Writes unBytes of data from *pSrc into a buffer.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

VRIOBufferback to summary
protected VRIOBuffer()

Method Detail

nVRIOBuffer_Openback to summary
public static int nVRIOBuffer_Open(long pchPath, int mode, int unElementSize, int unElements, long pulBuffer)

Unsafe version of: Open

nVRIOBuffer_Readback to summary
public static int nVRIOBuffer_Read(long ulBuffer, long pDst, int unBytes, long punRead)

Unsafe version of: Read

nVRIOBuffer_Writeback to summary
public static int nVRIOBuffer_Write(long ulBuffer, long pSrc, int unBytes)

Unsafe version of: Write

VRIOBuffer_Closeback to summary
public static int VRIOBuffer_Close(long ulBuffer)

Closes a previously opened or created buffer.

Annotations
@NativeType:EIOBufferError
VRIOBuffer_HasReadersback to summary
public static boolean VRIOBuffer_HasReaders(long ulBuffer)

Inexpensively checks for readers to allow writers to fast-fail potentially expensive copies and writes.

Annotations
@NativeType:bool
VRIOBuffer_Openback to summary
public static int VRIOBuffer_Open(ByteBuffer pchPath, int mode, int unElementSize, int unElements, LongBuffer pulBuffer)

Opens an existing or creates a new IOBuffer of unSize bytes.

Parameters
mode:int

one of:

VR#EIOBufferMode_IOBufferMode_ReadVR#EIOBufferMode_IOBufferMode_Write
VR#EIOBufferMode_IOBufferMode_Create
Annotations
@NativeType:EIOBufferError
VRIOBuffer_Openback to summary
public static int VRIOBuffer_Open(CharSequence pchPath, int mode, int unElementSize, int unElements, LongBuffer pulBuffer)

Opens an existing or creates a new IOBuffer of unSize bytes.

Parameters
mode:int

one of:

VR#EIOBufferMode_IOBufferMode_ReadVR#EIOBufferMode_IOBufferMode_Write
VR#EIOBufferMode_IOBufferMode_Create
Annotations
@NativeType:EIOBufferError
VRIOBuffer_PropertyContainerback to summary
public static long VRIOBuffer_PropertyContainer(long ulBuffer)

Retrieves the property container of a buffer.

Annotations
@NativeType:PropertyContainerHandle_t
VRIOBuffer_Readback to summary
public static int VRIOBuffer_Read(long ulBuffer, ByteBuffer pDst, IntBuffer punRead)

Reads up to unBytes from buffer into *pDst, returning number of bytes read in *punRead

Annotations
@NativeType:EIOBufferError
VRIOBuffer_Writeback to summary
public static int VRIOBuffer_Write(long ulBuffer, ByteBuffer pSrc)

Writes unBytes of data from *pSrc into a buffer.

Annotations
@NativeType:EIOBufferError