如果我需要在大量的二进制数据上进行字节操作,这就有问题了,Scala的基本类型是常量化的吗?
If I have to do bit manipulation of large amounts of binary data, why is it, that Scala's primitive types are immutable?
That generally is just modifying a few bytes, a few kilobytes worth of information.
这个操作通常只是修改了几个,或者几千字节的有价值的信息。
Only the operating system has controlling of byte zero NULL in the computer's RAM and so if a function ever returns null, aka zero, well, something must have gone wrong because that can't possibly belong to me that memory because by human convention zero is owned by the operating system; not by a program I wrote.
只用操作系统在内存中能够控制,字节0,并且如果一个函数返回,或者说0,好的,可能出错了,因为那可能是不属于我的内存,因为惯例上,0是由操作系统拥有的,而不是由我的程序拥有的。
应用推荐