Sharpen.ByteBuffer.AsShortBuffer C# (CSharp) Method

AsShortBuffer() public method

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