当前位置:网站首页>Pit of kotlin bit operation (bytes[i] and 0xff error)
Pit of kotlin bit operation (bytes[i] and 0xff error)
2022-07-01 06:02:00 【lplj717】

java Median operation
bytes yes byte Array
bytes[i] & 0xff ( No abnormality )
kotlin Cannot be replaced with
bytes[i] and 0xff ( Error report as shown in the figure , Follow the tips to complete the following )
(bytes[i] and 0xff.toByte()).toInt() ( This is still a signed number , Failed to meet expectations )
because kotlin Bit operation only for int The type and long type , Need to change to
bytes[i].toInt() and 0xff
边栏推荐
猜你喜欢

论文学习记录随笔 多标签之LIFT

FPGA - 7系列 FPGA内部结构之Clocking -02- 时钟布线资源

Seven major technical updates that developers should pay most attention to on build 2022

Advanced cross platform application development (III): online resource upgrade / hot update with uni app

It's not that you have a bad mind, but that you haven't found the right tool

【文件系统】如何在ubi之上运行squashfs

论文学习记录随笔 多标签之LSML

C language beginner level - realize the minesweeping game

El tooltip in the table realizes line breaking display

论文学习记录随笔 多标签之GLOCAL
随机推荐
基于LabVIEW的计时器
MinIO纠错码、分布式MinIO集群搭建及启动
亲爱的派盘用户,我要向您表白!
My experience from technology to product manager
Beauty of Mathematics - Application of Mathematics
Enter an expression (expressed as a string) and find the value of this expression.
68 Cesium代码datasource加载czml
jdbc-连接池
Infinite horizontal marble game
π disk, turning your computer into a personal private cloud
CJC8988带2个立体声耳机驱动器的低功率立体声编解码器
穿越派·派盘 + 思源笔记 = 私人笔记本
This is the necessary software for college students 𞓜 knowledge management
FPGA - 7系列 FPGA内部结构之Clocking -02- 时钟布线资源
Linux closes the redis process SYSTEMd+
Primary application case of Excel DuPont analyzer
El tooltip in the table realizes line breaking display
Advanced cross platform application development (II): uni app practice
Excel dynamic chart
ArcServer密码重置(账号不可以重置)