Sharpen.ByteBuffer.AsIntBuffer C# (CSharp) Method

AsIntBuffer() public method

public AsIntBuffer ( ) : IntBuffer
return IntBuffer
        public IntBuffer AsIntBuffer()
        {
            IntBuffer buf = new IntBuffer();
            buf.buffer = new byte[this.buffer.Length];
            this.buffer.CopyTo(buf.buffer, 0);

            buf.c = this.c;
            buf.capacity = this.capacity;
            buf.index = this.index;
            buf.limit = this.limit;
            buf.mark = this.mark;
            buf.offset = this.offset;
            buf.order = this.order;
            return buf;
        }