0

I need two functions:

update(byte: Byte) {}
update(int: Int) {}

Now I want to update a byte and try to call it with update(0x01), but update(Int) is called.

Is there a way to call update(Byte) in one line?

I mean without explicit byte value val byte: Byte = 0x01; update(byte).

For example update(0x01: Byte)?

shmosel
  • 49,289
  • 6
  • 73
  • 138
Piu130
  • 1,288
  • 3
  • 16
  • 28

0 Answers0