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; } }
public static long SingleBlockLongValue(int keyId, PropertyType type, long longValue) { return(keyId | ((( long )type.intValue()) << StandardFormatSettings.PROPERTY_TOKEN_MAXIMUM_ID_BITS) | (longValue << 28)); }