Exemple #1
0
 /// <summary>
 /// 设置根节点
 /// </summary>
 /// <param name="boot"></param>
 private void setBoot(int boot)
 {
     this.boot = boot;
     nodes     = (int *)Unmanaged.Get64((1 << 16) * sizeof(int), true);
     foreach (KeyValue <char, int> node in NodePool.Pool[boot >> ArrayPool.ArraySizeBit][boot & ArrayPool.ArraySizeAnd].Nodes)
     {
         nodes[node.Key] = node.Value;
     }
 }
Exemple #2
0
 public byte *GetClear()
 {
     return(Pool == null ? (byte *)Unmanaged.Get64(MemberMapSize, true) : Pool.GetClear());
 }
Exemple #3
0
 public byte *GetMap()
 {
     return(Pool == null ? (byte *)Unmanaged.Get64(MemberMapSize, false) : Pool.Get());
 }