public static long [ ] dataBufferToArray ( DataBuffer buffer ) { int rank = buffer . getInt ( 0 ) ; val ret = new long [ Shape . shapeInfoLength ( rank ) ] ; ret [ 0 ] = rank ; for ( int e = 1 ; e < Shape . shapeInfoLength ( rank ) ; e ++ ) { ret [ e ] = buffer . getInt ( e ) ; } return ret ; }
Obtain the values from the shape buffer for the array