Class NioUtil


  • public class NioUtil
    extends Object
    NioUtils for operations on nio buffers
    Author:
    Adam Gibson
    • 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 buffer
        fromOffset - the starting offset
        fromStride - the stride at which to copy from the origin
        to - the destination buffer
        toOffset - the starting point
        toStride - the to stride