Esempio n. 1
0
 public static int GetInitialPhysicalSize(Key *key, Input *input)
 {
     return
         (RecordInfo.GetLength() +
          Key.GetLength(default(Key *)) +
          Functions.InitialValueLength(key, input));
 }
Esempio n. 2
0
 public static int GetAveragePhysicalSize()
 {
     return(RecordInfo.GetLength() + Key.GetLength(default(Key *)) + Value.GetLength(default(Value *)));
 }
Esempio n. 3
0
 public static int EstimatePhysicalSize(Key *key, Value *value)
 {
     return(RecordInfo.GetLength() + Key.GetLength(key) + Value.GetLength(value));
 }
Esempio n. 4
0
 public static int GetPhysicalSize(long physicalAddress)
 {
     return(RecordInfo.GetLength() + Key.GetLength(default(Key *)) + Value.GetLength(default(Value *)));
 }
Esempio n. 5
0
 public static Value *GetValue(long physicalAddress)
 {
     return((Value *)((byte *)physicalAddress + RecordInfo.GetLength() + Key.GetLength(default(Key *))));
 }