예제 #1
0
 public unsafe node(long cell_id, AccessorBuffer buffer)
 {
     byte[] cellContent = buffer.Buffer;
     fixed(byte *ptr = cellContent)
     {
         using (var accessor = new node_Accessor(ptr))
         {
             this.name = accessor.name; this.friends = accessor.friends;
         }
         CellID = cell_id;
     }
 }
예제 #2
0
 public unsafe SSSPCell(long cell_id, AccessorBuffer buffer)
 {
     byte[] cellContent = buffer.Buffer;
     fixed(byte *ptr = cellContent)
     {
         using (var accessor = new SSSPCell_Accessor(ptr))
         {
             this.distance = accessor.distance; this.parent = accessor.parent; this.neighbors = accessor.neighbors;
         }
         CellID = cell_id;
     }
 }
예제 #3
0
 public unsafe node(AccessorBuffer buffer)
 {
     byte[] cellContent = buffer.Buffer;
     fixed(byte *ptr = cellContent)
     {
         using (var accessor = new node_Accessor(ptr))
         {
             this.name = accessor.name; this.friends = accessor.friends;
         }
         CellID = CellIDFactory.NewCellID();
     }
 }