Package org.nd4j.common.util
Class NioUtil
- java.lang.Object
-
- org.nd4j.common.util.NioUtil
-
public class NioUtil extends Object
NioUtils for operations on nio buffers- Author:
- Adam Gibson
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNioUtil.BufferType
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcopyAtStride(int n, NioUtil.BufferType bufferType, ByteBuffer from, int fromOffset, int fromStride, ByteBuffer to, int toOffset, int toStride)Copy from the given from buffer to the to buffer at the specified offsets and strides
-
-
-
Method Detail
-
copyAtStride
public static void copyAtStride(int n, NioUtil.BufferType bufferType, ByteBuffer from, int fromOffset, int fromStride, ByteBuffer to, int toOffset, int toStride)Copy from the given from buffer to the to buffer at the specified offsets and strides- Parameters:
n-bufferType-from- the origin bufferfromOffset- the starting offsetfromStride- the stride at which to copy from the originto- the destination buffertoOffset- the starting pointtoStride- the to stride
-
-