public ByteBuffer getIndicesBuffer ( ) { final ByteBuffer buffer = CausticUtil . createByteBuffer ( indices . size ( ) * DataType . INT . getByteSize ( ) ) ; for ( int i = 0 ; i < indices . size ( ) ; i ++ ) { buffer . putInt ( indices . get ( i ) ) ; } buffer . flip ( ) ; return buffer ; }
Returns a byte buffer containing all the current indices .