: (I)ShortIndexer.create(new ShortPointer((ShortBuffer)buffer), sizes, strides, false).indexable(this); case DEPTH_INT: return array != null ? (I)IntIndexer.create((int[])array, sizes, strides).indexable(this) : direct ? (I)IntIndexer.create((IntBuffer)buffer, sizes, strides).indexable(this) : (I)IntIndexer.create(new IntPointer((IntBuffer)buffer), sizes, strides, false).indexable(this); case DEPTH_LONG: return array != null ? (I)LongIndexer.create((long[])array, sizes, strides).indexable(this)
: (I)ShortIndexer.create(new ShortPointer((ShortBuffer)buffer), sizes, strides, false).indexable(this); case DEPTH_INT: return array != null ? (I)IntIndexer.create((int[])array, sizes, strides).indexable(this) : direct ? (I)IntIndexer.create((IntBuffer)buffer, sizes, strides).indexable(this) : (I)IntIndexer.create(new IntPointer((IntBuffer)buffer), sizes, strides, false).indexable(this); case DEPTH_LONG: return array != null ? (I)LongIndexer.create((long[])array, sizes, strides).indexable(this)
case DT_DOUBLE: return (I)DoubleIndexer.create(new DoublePointer(ptr).capacity(size/8), sizes, strides, direct).indexable(this); case DT_QINT32: case DT_INT32: return (I)IntIndexer.create(new IntPointer(ptr).capacity(size/4), sizes, strides, direct).indexable(this); case DT_BOOL: case DT_QUINT8: