Ejemplo n.º 1
0
        public virtual void EnsureHeavy(PropertyBlock block)
        {
            if (!block.Light)
            {
                return;
            }

            PropertyType type = block.Type;
            RecordStore <DynamicRecord> dynamicStore = DynamicStoreForValueType(type);

            if (dynamicStore != null)
            {
                IList <DynamicRecord> dynamicRecords = dynamicStore.GetRecords(block.SingleValueLong, NORMAL);
                foreach (DynamicRecord dynamicRecord in dynamicRecords)
                {
                    dynamicRecord.SetType(type.intValue());
                }
                block.ValueRecords = dynamicRecords;
            }
        }
Ejemplo n.º 2
0
 public static long SingleBlockLongValue(int keyId, PropertyType type, long longValue)
 {
     return(keyId | ((( long )type.intValue()) << StandardFormatSettings.PROPERTY_TOKEN_MAXIMUM_ID_BITS) | (longValue << 28));
 }