Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RowIdentifier"/> struct.
 /// </summary>
 /// <param name="page">The page.</param>
 /// <param name="slot">The slot.</param>
 public RowIdentifier(PageAddress page, int slot)
 {
     PageAddress = page;
     SlotId      = slot;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RowIdentifier"/> struct.
 /// </summary>
 /// <param name="fileId">The file id.</param>
 /// <param name="pageId">The page id.</param>
 /// <param name="slot">The slot.</param>
 public RowIdentifier(int fileId, int pageId, int slot)
 {
     PageAddress = new PageAddress(fileId, pageId);
     SlotId      = slot;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RowIdentifier"/> struct.
 /// </summary>
 /// <param name="address">The address.</param>
 public RowIdentifier(byte[] address)
 {
     PageAddress = new PageAddress(BitConverter.ToInt16(address, 4), BitConverter.ToInt32(address, 0));
     SlotId      = BitConverter.ToInt16(address, 6);
 }