Sharpen.IntBuffer.Wrap C# (CSharp) Method

Wrap() public static method

public static Wrap ( int data ) : IntBuffer
data int
return IntBuffer
        public static IntBuffer Wrap(int[] data)
        {
            IntBuffer buf = new IntBuffer(new byte[data.Length * 4], 0, data.Length * 4);
            for (int i = 0; i < data.Length; i++)
            {
                buf.PutInt(data[i]);
            }
            return buf;
        }