40

有没有什么算法可以将 16bit 压缩到 10bit 来存储?

 4 years ago
source link: https://www.v2ex.com/t/593783
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
程序员 - @alcoholpad - 业务场景:将 ip 地址,如 10.21.221.20 ,后两段( 221.20 )截取下来转成二进制。但是只能有 10bit 的存储空间可以存储,可行吗?有什么方式可以转换?保证唯一。避免如 221

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK