示例#1
0
 public int packDate(int offs, DateTime val)
 {
     extend(offs + 8);
     Bytes.packDate(arr, offs, val);
     return offs + 8;
 }
示例#2
0
 public int packDecimal(int offs, decimal val)
 {
     extend(offs + 16);
     Bytes.packDecimal(arr, offs, val);
     return offs + 16;
 }
示例#3
0
 public int packGuid(int offs, Guid val)
 {
     extend(offs + 16);
     Bytes.packGuid(arr, offs, val);
     return offs + 16;
 }
示例#4
0
 public int packF4(int offs, float val)
 {
     extend(offs + 4);
     Bytes.packF4(arr, offs, val);
     return offs + 4;
 }
示例#5
0
 public int packF8(int offs, double val)
 {
     extend(offs + 8);
     Bytes.packF8(arr, offs, val);
     return offs + 8;
 }
示例#6
0
 public int packI8(int offs, long val)
 {
     extend(offs + 8);
     Bytes.pack8(arr, offs, val);
     return offs + 8;
 }
示例#7
0
 public int packI4(int offs, int val)
 {
     extend(offs + 4);
     Bytes.pack4(arr, offs, val);
     return offs + 4;
 }
示例#8
0
 public int packI2(int offs, int val)
 {
     extend(offs + 2);
     Bytes.pack2(arr, offs, (short)val);
     return offs + 2;
 }
示例#9
0
 internal static void setItem(Page pg, int index, int mask)
 {
     Bytes.pack4(pg.data, firstKeyOffs + index * 4, mask);
 }
示例#10
0
 internal static int getItem(Page pg, int index)
 {
     return(Bytes.unpack4(pg.data, firstKeyOffs + index * 4));
 }