Sharpen.ByteBuffer.AsLongBuffer C# (CSharp) Method

AsLongBuffer() public method

public AsLongBuffer ( ) : LongBuffer
return LongBuffer
        public LongBuffer AsLongBuffer()
        {
            LongBuffer buf = new LongBuffer();
            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;
        }