不像 Parser 的函数式接口可以有方便的
其实也不是不可以,但那样的收益就太低了,要同时写 from 和 to
then,这里做不到,因为既要能读又要能写,不可能单独在读的时候转化为另一种数据类型。其实也不是不可以,但那样的收益就太低了,要同时写 from 和 to
const val signBit = 0x0000_8000
internal fun Int16.uExt(): Int32 = if (this < 0) {
signBit.or(Int16.MAX_VALUE.minus(this).inv())
} else this.toInt()
正在考虑还有什么没有完成的…… 啊,是 typed array。可是这个没法完成的…… 好像也不是
Bitflags 也可以考虑一下
Bitflags 也可以考虑一下
Seq 的 aligned read/write 可以考虑一下,有必要弄一个子类出来?可是 aligned write 该如何…… witer 可没办法 align 啊,它不记得自己 write 了多少……
我觉得这个问题…… 真的没法解决吗?写一些子类试试
我觉得这个问题…… 真的没法解决吗?写一些子类试试
duangsuse::Echo
我们要重写的就是这个,考虑到没必要的原因,就不写 Reader/Writer 部分了 不,写,用 Kotlin multi-platform
停,咱们暂时回到正题,反正以我的编程习惯也写不出来不好维护的项目,还是继续讨论这个玩意怎么实现。
duangsuse::Echo
我写得这么好看,你们也不星一下,莫不是应了那句好东西都没人星的道理。
因为 duangsuse 太大佬了 咱弱鸡看不懂
This media is not supported in your browser
VIEW IN TELEGRAM
duangsuse::Echo
因为 duangsuse 太大佬了 咱弱鸡看不懂
This media is not supported in your browser
VIEW IN TELEGRAM