Ejemplo n.º 1
0
 public PpmdProperties(byte[] properties)
 {
     if (properties.Length == 2)
     {
         ushort props = DataConverter.LittleEndian.GetUInt16(properties, 0);
         AllocatorSize          = (((props >> 4) & 0xff) + 1) << 20;
         ModelOrder             = (props & 0x0f) + 1;
         ModelRestorationMethod = (I1.ModelRestorationMethod)(props >> 12);
     }
     else if (properties.Length == 5)
     {
         Version       = PpmdVersion.H7z;
         AllocatorSize = DataConverter.LittleEndian.GetInt32(properties, 1);
         ModelOrder    = properties[0];
     }
 }
 public PpmdProperties(byte[] properties)
 {
     if (properties.Length == 2)
     {
         ushort props = BitConverter.ToUInt16(properties, 0);
         AllocatorSize = (((props >> 4) & 0xff) + 1) << 20;
         ModelOrder = (props & 0x0f) + 1;
         ModelRestorationMethod = (I1.ModelRestorationMethod)(props >> 12);
     }
     else if (properties.Length == 5)
     {
         Version = PpmdVersion.H7z;
         AllocatorSize = BitConverter.ToInt32(properties, 1);
         ModelOrder = properties[0];
     }
 }
Ejemplo n.º 3
0
 internal PpmdProperties(int allocatorSize, int modelOrder, I1.ModelRestorationMethod modelRestorationMethod)
 {
     AllocatorSize          = allocatorSize;
     ModelOrder             = modelOrder;
     ModelRestorationMethod = modelRestorationMethod;
 }
 internal PpmdProperties(int allocatorSize, int modelOrder, I1.ModelRestorationMethod modelRestorationMethod)
 {
     AllocatorSize = allocatorSize;
     ModelOrder = modelOrder;
     ModelRestorationMethod = modelRestorationMethod;
 }