Class ByteBufferBasicBytez

java.lang.Object
org.nustaq.offheap.bytez.niobuffers.ByteBufferBasicBytez
All Implemented Interfaces:
BasicBytez, ByteSink, ByteSource

public class ByteBufferBasicBytez
extends java.lang.Object
implements BasicBytez
Created by moelrue on 5/5/15.
  • Constructor Summary

    Constructors 
    Constructor Description
    ByteBufferBasicBytez​(java.nio.ByteBuffer buffer)  
  • Method Summary

    Modifier and Type Method Description
    void copyTo​(BasicBytez other, long otherByteIndex, long myByteIndex, long lenBytes)  
    byte get​(long byteIndex)  
    void getArr​(long byteIndex, byte[] target, int elemoff, int numElems)
    copy to a byte array
    boolean getBool​(long byteIndex)  
    void getBooleanArr​(long byteIndex, boolean[] target, int elemoff, int numElems)
    see getArr
    java.nio.ByteBuffer getBuffer()  
    char getChar​(long byteIndex)  
    void getCharArr​(long byteIndex, char[] target, int elemoff, int numElems)
    see getArr
    double getDouble​(long byteIndex)  
    void getDoubleArr​(long byteIndex, double[] target, int elemoff, int numElems)
    see getArr
    float getFloat​(long byteIndex)  
    void getFloatArr​(long byteIndex, float[] target, int elemoff, int numElems)
    see getArr
    int getInt​(long byteIndex)  
    void getIntArr​(long byteIndex, int[] target, int elemoff, int numElems)
    see getArr
    long getLong​(long byteIndex)  
    void getLongArr​(long byteIndex, long[] target, int elemoff, int numElems)
    see getArr
    short getShort​(long byteIndex)  
    void getShortArr​(long byteIndex, short[] target, int elemoff, int numElems)
    see getArr
    long length()  
    BasicBytez newInstance​(long size)  
    void put​(long byteIndex, byte value)  
    void putBool​(long byteIndex, boolean val)  
    void putChar​(long byteIndex, char c)  
    void putDouble​(long byteIndex, double d)  
    void putFloat​(long byteIndex, float f)  
    void putInt​(long byteIndex, int i)  
    void putLong​(long byteIndex, long l)  
    void putShort​(long byteIndex, short s)  
    void set​(long byteIndex, byte[] source, int elemoff, int numElems)  
    void setBoolean​(long byteIndex, boolean[] source, int elemoff, int siz)  
    void setBuffer​(java.nio.ByteBuffer buffer)  
    void setChar​(long byteIndex, char[] source, int elemoff, int numElems)  
    void setDouble​(long byteIndex, double[] source, int elemoff, int numElems)  
    void setFloat​(long byteIndex, float[] source, int elemoff, int numElems)  
    void setInt​(long byteIndex, int[] source, int elemoff, int numElems)  
    void setLong​(long byteIndex, long[] source, int elemoff, int numElems)  
    void setShort​(long byteIndex, short[] source, int elemoff, int numElems)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait