Sharpen.ByteBuffer.Position C# (CSharp) Method

Position() public method

public Position ( ) : int
return int
        public int Position()
        {
            return (index - offset);
        }

Same methods

ByteBuffer::Position ( int pos ) : void

Usage Example

Example #1
0
        public int Read(ByteBuffer buffer)
        {
            int offset = buffer.Position() + buffer.ArrayOffset();
            int num2   = s.Read(buffer.Array(), offset, (buffer.Limit() + buffer.ArrayOffset()) - offset);

            buffer.Position(buffer.Position() + num2);
            return(num2);
        }
All Usage Examples Of Sharpen.ByteBuffer::Position