|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nasa.worldwind.util.BufferWrapper
gov.nasa.worldwind.util.BufferWrapper.AbstractBufferWrapper<ByteBuffer>
gov.nasa.worldwind.util.BufferWrapper.ByteBufferWrapper
public static class BufferWrapper.ByteBufferWrapper
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class gov.nasa.worldwind.util.BufferWrapper |
|---|
BufferWrapper.AbstractBufferWrapper<T extends Buffer>, BufferWrapper.ByteBufferWrapper, BufferWrapper.DoubleBufferWrapper, BufferWrapper.EmptyBufferWrapper, BufferWrapper.FloatBufferWrapper, BufferWrapper.IntBufferWrapper, BufferWrapper.ShortBufferWrapper |
| Field Summary |
|---|
| Fields inherited from class gov.nasa.worldwind.util.BufferWrapper.AbstractBufferWrapper |
|---|
buffer |
| Fields inherited from class gov.nasa.worldwind.util.BufferWrapper |
|---|
EMPTY_BUFFER_WRAPPER |
| Constructor Summary | |
|---|---|
BufferWrapper.ByteBufferWrapper(ByteBuffer buffer)
|
|
| Method Summary | |
|---|---|
BufferWrapper |
copyOf(int newSize)
Returns a copy of this buffer with the specified new size. |
protected void |
doGetByte(byte[] array,
int offset,
int length)
|
protected void |
doGetDouble(double[] array,
int offset,
int length)
|
protected void |
doGetFloat(float[] array,
int offset,
int length)
|
protected void |
doGetInt(int[] array,
int offset,
int length)
|
protected void |
doGetShort(short[] array,
int offset,
int length)
|
protected BufferWrapper |
doGetSubBuffer()
|
protected void |
doPutByte(byte[] array,
int offset,
int length)
|
protected void |
doPutDouble(double[] array,
int offset,
int length)
|
protected void |
doPutFloat(float[] array,
int offset,
int length)
|
protected void |
doPutInt(int[] array,
int offset,
int length)
|
protected void |
doPutShort(short[] array,
int offset,
int length)
|
protected boolean |
doPutSubBuffer(int index,
BufferWrapper buffer,
int offset,
int length)
|
ByteBuffer |
getBackingByteBuffer()
|
byte |
getByte(int index)
Returns the value at the specified index, cast to a byte. |
double |
getDouble(int index)
Returns the value at the specified index, cast to a double. |
float |
getFloat(int index)
Returns the value at the specified index, cast to a float. |
int |
getGLDataType()
Returns the OpenGL data type corresponding to the buffer's underlying data type (e.g. |
int |
getInt(int index)
Returns the value at the specified index, cast to an int. |
short |
getShort(int index)
Returns the value at the specified index, cast to a short. |
long |
getSizeInBytes()
Returns the size of this buffer, in bytes. |
void |
putByte(int index,
byte value)
Sets the value at the specified index as a byte. |
void |
putDouble(int index,
double value)
Sets the value at the specified index as a double. |
void |
putFloat(int index,
float value)
Sets the value at the specified index as a float. |
void |
putInt(int index,
int value)
Sets the value at the specified index as an int. |
void |
putShort(int index,
short value)
Sets the value at the specified index as a short. |
| Methods inherited from class gov.nasa.worldwind.util.BufferWrapper.AbstractBufferWrapper |
|---|
getBackingBuffer, getByte, getDouble, getFloat, getInt, getShort, getSubBuffer, length, putByte, putDouble, putFloat, putInt, putShort, putSubBuffer, putSubBuffer |
| Methods inherited from class gov.nasa.worldwind.util.BufferWrapper |
|---|
emptyBufferWrapper, wrap, wrap, wrap |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BufferWrapper.ByteBufferWrapper(ByteBuffer buffer)
| Method Detail |
|---|
public BufferWrapper copyOf(int newSize)
BufferWrapper
copyOf in class BufferWrappernewSize - the new buffer's size.
protected void doGetByte(byte[] array,
int offset,
int length)
doGetByte in class BufferWrapper.AbstractBufferWrapper<ByteBuffer>
protected void doGetDouble(double[] array,
int offset,
int length)
doGetDouble in class BufferWrapper.AbstractBufferWrapper<ByteBuffer>
protected void doGetFloat(float[] array,
int offset,
int length)
doGetFloat in class BufferWrapper.AbstractBufferWrapper<ByteBuffer>
protected void doGetInt(int[] array,
int offset,
int length)
doGetInt in class BufferWrapper.AbstractBufferWrapper<ByteBuffer>
protected void doGetShort(short[] array,
int offset,
int length)
doGetShort in class BufferWrapper.AbstractBufferWrapper<ByteBuffer>protected BufferWrapper doGetSubBuffer()
doGetSubBuffer in class BufferWrapper.AbstractBufferWrapper<ByteBuffer>
protected void doPutByte(byte[] array,
int offset,
int length)
doPutByte in class BufferWrapper.AbstractBufferWrapper<ByteBuffer>
protected void doPutDouble(double[] array,
int offset,
int length)
doPutDouble in class BufferWrapper.AbstractBufferWrapper<ByteBuffer>
protected void doPutFloat(float[] array,
int offset,
int length)
doPutFloat in class BufferWrapper.AbstractBufferWrapper<ByteBuffer>
protected void doPutInt(int[] array,
int offset,
int length)
doPutInt in class BufferWrapper.AbstractBufferWrapper<ByteBuffer>
protected void doPutShort(short[] array,
int offset,
int length)
doPutShort in class BufferWrapper.AbstractBufferWrapper<ByteBuffer>
protected boolean doPutSubBuffer(int index,
BufferWrapper buffer,
int offset,
int length)
doPutSubBuffer in class BufferWrapper.AbstractBufferWrapper<ByteBuffer>public ByteBuffer getBackingByteBuffer()
public byte getByte(int index)
BufferWrapper
getByte in class BufferWrapperindex - the index of the value to be returned.
public double getDouble(int index)
BufferWrapper
getDouble in class BufferWrapperindex - the index of the value to be returned.
public float getFloat(int index)
BufferWrapper
getFloat in class BufferWrapperindex - the index of the value to be returned.
public int getGLDataType()
BufferWrapper
getGLDataType in class BufferWrapperpublic int getInt(int index)
BufferWrapper
getInt in class BufferWrapperindex - the index of the value to be returned.
public short getShort(int index)
BufferWrapper
getShort in class BufferWrapperindex - the index of the value to be returned.
public long getSizeInBytes()
BufferWrapper
getSizeInBytes in class BufferWrapper
public void putByte(int index,
byte value)
BufferWrapper
putByte in class BufferWrapperindex - the index of the value to be returned.value - the byte value to be set.
public void putDouble(int index,
double value)
BufferWrapper
putDouble in class BufferWrapperindex - the index of the value to be returned.value - the double value to be set.
public void putFloat(int index,
float value)
BufferWrapper
putFloat in class BufferWrapperindex - the index of the value to be returned.value - the float value to be set.
public void putInt(int index,
int value)
BufferWrapper
putInt in class BufferWrapperindex - the index of the value to be returned.value - the int value to be set.
public void putShort(int index,
short value)
BufferWrapper
putShort in class BufferWrapperindex - the index of the value to be returned.value - the short value to be set.
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||