As seen another question in 0xFF0000FF An integer literal does not conform to the expected type kotlin.Int
I declaring value 0xFF as Byte
val b:Byte = 0xFF
接收The integer literal does not conform to the expected type Byte编译错误
因为我有kotlin.Byte
条线索is signed byte
How to declaring Byte in Kotlin with 0x00
- 0xFF
unsigned byte just like .net Byte b = 0xFF
?
.
.
如果您想要即时编译器进行测试并回答: