@ Override public DataBuffer create ( Pointer pointer , DataBuffer . Type type , long length , Indexer indexer ) { switch ( type ) { case INT : return new IntBuffer ( pointer , indexer , length ) ; case DOUBLE : return new DoubleBuffer ( pointer , indexer , length ) ; case FLOAT : return new FloatBuffer ( pointer , indexer , length ) ; case LONG : return new LongBuffer ( pointer , indexer , length ) ; } throw new IllegalArgumentException ( "Invalid opType " + type ) ; }
Create a data buffer based on the given pointer data buffer opType and length of the buffer