Support buffer setslice and iteration