You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
原文 by @simlecode
cid-offset对 --> MultihashIndexSorted:
multihash(cid) 可以得到一个code和digest,先用code进行分组,code值相同的为一组,分组完成后,在每一组中根据digest长度再分组,digest长度相同的为一组,然后对组内进行排序,申请一个(digest长度+8)*组内元素个数的byte数组,然后按顺序向byte数组填充数据(digest+offset),也就是说cid-offset所占空间取决于cid类型。
Beta Was this translation helpful? Give feedback.
All reactions