module OSC
  class NetworkPacket
    def initialize(str)
      @str, @index = str.force_encoding("BINARY"), 0
    end

    def to_s
      @str
    end

    def rem()
      @str.length - @index
    end

    def eof? ()
      rem <= 0
    end

    def skip(n)
      @index += n
    end

    def skip_padding()
      skip((4 - (@index % 4)) % 4)
    end

    def getn(n)
    	raise EOFError if rem < n
    	s = @str[@index, n]
    	skip(n)
    	s
    end

    def getc
    	raise EOFError if rem < 1
    	c = @str[@index]
    	skip(1)
    	c
    end
  end
end
module OSC
  class NetworkPacket
    def initialize(str)
      @str, @index = str.force_encoding("BINARY"), 0
    end

    def to_s
      @str
    end

    def rem()
      @str.length - @index
    end

    def eof?()
      rem <= 0
    end

    def skip(n)
      @index += n
    end

    def skip_padding()
      skip((4 - (@index % 4)) % 4)
    end

    def getn(n)
    	raise EOFError if rem < n
    	s = @str[@index, n]
    	skip(n)
    	s
    end

    def getc
    	raise EOFError if rem < 1
    	c = @str[@index]
    	skip(1)
    	c
    end
  end
end

Fix parens for warning in Ruby 2.6.5
Fix parens for warning in Ruby 2.6.5

Small chance to fix an extra space in the method definition - `def eof? ()` => `def eof?()` (without space)

Fixes the warning

```
/.gem/ruby/2.6.5/gems/osc-ruby-1.1.3/lib/osc-ruby/network_packet.rb:15: warning: parentheses after method name is interpreted as an argument list, not a decomposed argument
```

Arguably the empty parens for methods like this could be removed  but that's more of a stylistic thing across the whole project.