コード例 #1
0
ファイル: Layout.cs プロジェクト: willsmythe/FASTER
 public static int GetInitialPhysicalSize(Key *key, Input *input)
 {
     return
         (RecordInfo.GetLength() +
          Key.GetLength(default(Key *)) +
          Functions.InitialValueLength(key, input));
 }
コード例 #2
0
ファイル: Layout.cs プロジェクト: willsmythe/FASTER
 public static int GetAveragePhysicalSize()
 {
     return(RecordInfo.GetLength() + Key.GetLength(default(Key *)) + Value.GetLength(default(Value *)));
 }
コード例 #3
0
ファイル: Layout.cs プロジェクト: willsmythe/FASTER
 public static int EstimatePhysicalSize(Key *key, Value *value)
 {
     return(RecordInfo.GetLength() + Key.GetLength(key) + Value.GetLength(value));
 }
コード例 #4
0
ファイル: Layout.cs プロジェクト: willsmythe/FASTER
 public static int GetPhysicalSize(long physicalAddress)
 {
     return(RecordInfo.GetLength() + Key.GetLength(default(Key *)) + Value.GetLength(default(Value *)));
 }
コード例 #5
0
ファイル: Layout.cs プロジェクト: willsmythe/FASTER
 public static Value *GetValue(long physicalAddress)
 {
     return((Value *)((byte *)physicalAddress + RecordInfo.GetLength() + Key.GetLength(default(Key *))));
 }