Ejemplo n.º 1
0
 private void LazinateWrappedValue()
 {
     if (LazinatorMemoryStorage.Length == 0)
     {
         _WrappedValue = default(Double[]);
     }
     else
     {
         LazinatorMemory childData = GetChildSlice(LazinatorMemoryStorage, _WrappedValue_ByteIndex, _WrappedValue_ByteLength, null); _WrappedValue = ConvertFromBytes_double_B_b(childData);
     }
     _WrappedValue_Accessed = true;
 }
Ejemplo n.º 2
0
 public WNullableUInt64(LazinatorMemory serializedBytes, ILazinator parent = null, IncludeChildrenMode originalIncludeChildrenMode = IncludeChildrenMode.IncludeAllChildren, int?lazinatorObjectVersion = null) : this()
 {
     if (lazinatorObjectVersion != null)
     {
         LazinatorObjectVersion = (int)lazinatorObjectVersion;
     }
     OriginalIncludeChildrenMode = originalIncludeChildrenMode;
     LazinatorParents            = new LazinatorParentsCollection(parent);
     DeserializeLazinator(serializedBytes);
     HasChanged           = false;
     DescendantHasChanged = false;
 }
Ejemplo n.º 3
0
 public ExampleNonexclusiveInterfaceImplementer(LazinatorMemory serializedBytes, ILazinator parent = null, IncludeChildrenMode originalIncludeChildrenMode = IncludeChildrenMode.IncludeAllChildren, int?lazinatorObjectVersion = null)
 {
     if (lazinatorObjectVersion != null)
     {
         LazinatorObjectVersion = (int)lazinatorObjectVersion;
     }
     OriginalIncludeChildrenMode = originalIncludeChildrenMode;
     LazinatorParents            = new LazinatorParentsCollection(parent);
     DeserializeLazinator(serializedBytes);
     HasChanged           = false;
     DescendantHasChanged = false;
 }
Ejemplo n.º 4
0
 private void LazinateMyArrayInt()
 {
     if (LazinatorMemoryStorage.Length == 0)
     {
         _MyArrayInt       = default(Int32[, ]);
         _MyArrayInt_Dirty = true;
     }
     else
     {
         LazinatorMemory childData = GetChildSlice(LazinatorMemoryStorage, _MyArrayInt_ByteIndex, _MyArrayInt_ByteLength, null); _MyArrayInt = ConvertFromBytes_int_B_c_b(childData);
     }
     _MyArrayInt_Accessed = true;
 }
Ejemplo n.º 5
0
 private void LazinateMyUnofficialObject()
 {
     if (LazinatorMemoryStorage.Length == 0)
     {
         _MyUnofficialObject = null;
     }
     else
     {
         LazinatorMemory childData = GetChildSlice(LazinatorMemoryStorage, _MyUnofficialObject_ByteIndex, _MyUnofficialObject_ByteLength, null);
         _MyUnofficialObject = DeserializationFactory.Instance.CreateBaseOrDerivedType(1037, (c, p) => new Concrete3(c, p), childData, this);
     }
     _MyUnofficialObject_Accessed = true;
 }
Ejemplo n.º 6
0
 private void LazinateMyChild1()
 {
     if (LazinatorMemoryStorage.Length == 0)
     {
         _MyChild1 = null;
     }
     else
     {
         LazinatorMemory childData = GetChildSlice(LazinatorMemoryStorage, _MyChild1_ByteIndex, _MyChild1_ByteLength, null);
         _MyChild1 = DeserializationFactory.Instance.CreateBaseOrDerivedType(1013, (c, p) => new ExampleChild(c, p), childData);
     }
     _MyChild1_Accessed = true;
 }
Ejemplo n.º 7
0
 private void LazinateUnderlyingList()
 {
     if (LazinatorMemoryStorage.Length == 0)
     {
         _UnderlyingList = null;
     }
     else
     {
         LazinatorMemory childData = GetChildSlice(LazinatorMemoryStorage, _UnderlyingList_ByteIndex, _UnderlyingList_ByteLength, null);
         _UnderlyingList = DeserializationFactory.Instance.CreateBasedOnType <ILazinatorListable <T> >(childData, this);
     }
     _UnderlyingList_Accessed = true;
 }
Ejemplo n.º 8
0
 private void LazinateMyGrandchildInInherited()
 {
     if (LazinatorMemoryStorage.Length == 0)
     {
         _MyGrandchildInInherited = null;
     }
     else
     {
         LazinatorMemory childData = GetChildSlice(LazinatorMemoryStorage, _MyGrandchildInInherited_ByteIndex, _MyGrandchildInInherited_ByteLength, null);
         _MyGrandchildInInherited = DeserializationFactory.Instance.CreateBaseOrDerivedType(1079, (c, p) => new ExampleGrandchild(c, p), childData, this);
     }
     _MyGrandchildInInherited_Accessed = true;
 }
Ejemplo n.º 9
0
 private void LazinateKey()
 {
     if (LazinatorMemoryStorage.Length == 0)
     {
         _Key = default(TKey);
     }
     else
     {
         LazinatorMemory childData = GetChildSlice(LazinatorMemoryStorage, _Key_ByteIndex, _Key_ByteLength, null);
         _Key = DeserializationFactory.Instance.CreateBasedOnType <TKey>(childData);
     }
     _Key_Accessed = true;
 }
Ejemplo n.º 10
0
 private void LazinateLocations()
 {
     if (LazinatorMemoryStorage.Length == 0)
     {
         _Locations = null;
     }
     else
     {
         LazinatorMemory childData = GetChildSlice(LazinatorMemoryStorage, _Locations_ByteIndex, _Locations_ByteLength, null);
         _Locations = DeserializationFactory.Instance.CreateBaseOrDerivedType(211, (c, p) => new LazinatorDictionary <T, LazinatorList <WInt32> >(c, p), childData, this);
     }
     _Locations_Accessed = true;
 }
Ejemplo n.º 11
0
 private void LazinateMyStructList()
 {
     if (LazinatorMemoryStorage.Length == 0)
     {
         _MyStructList = null;
     }
     else
     {
         LazinatorMemory childData = GetChildSlice(LazinatorMemoryStorage, _MyStructList_ByteIndex, _MyStructList_ByteLength, null);
         _MyStructList = DeserializationFactory.Instance.CreateBaseOrDerivedType(201, (c, p) => new LazinatorList <WByte>(c, p), childData, this);
     }
     _MyStructList_Accessed = true;
 }
Ejemplo n.º 12
0
 private void LazinateSubclassInstance1()
 {
     if (LazinatorMemoryStorage.Length == 0)
     {
         _SubclassInstance1 = null;
     }
     else
     {
         LazinatorMemory childData = GetChildSlice(LazinatorMemoryStorage, _SubclassInstance1_ByteIndex, _SubclassInstance1_ByteLength, null);
         _SubclassInstance1 = DeserializationFactory.Instance.CreateBaseOrDerivedType(1058, (c, p) => new global::LazinatorTests.Examples.Subclasses.ClassWithSubclass.SubclassWithinClass(c, p), childData, this);
     }
     _SubclassInstance1_Accessed = true;
 }
Ejemplo n.º 13
0
 private void LazinateChildren()
 {
     if (LazinatorMemoryStorage.Length == 0)
     {
         _Children = null;
     }
     else
     {
         LazinatorMemory childData = GetChildSlice(LazinatorMemoryStorage, _Children_ByteIndex, _Children_ByteLength, null);
         _Children = DeserializationFactory.Instance.CreateBaseOrDerivedType(201, (c, p) => new LazinatorList <LazinatorGeneralTree <T> >(c, p), childData, this);
     }
     _Children_Accessed = true;
 }
Ejemplo n.º 14
0
 private void LazinateItem()
 {
     if (LazinatorMemoryStorage.Length == 0)
     {
         _Item = null;
     }
     else
     {
         LazinatorMemory childData = GetChildSlice(LazinatorMemoryStorage, _Item_ByteIndex, _Item_ByteLength, null);
         _Item = DeserializationFactory.Instance.CreateBasedOnType <IAbstractGeneric1 <Int32> >(childData, this);
     }
     _Item_Accessed = true;
 }
Ejemplo n.º 15
0
 private void LazinateExampleByInterface()
 {
     if (LazinatorMemoryStorage.Length == 0)
     {
         _ExampleByInterface = null;
     }
     else
     {
         LazinatorMemory childData = GetChildSlice(LazinatorMemoryStorage, _ExampleByInterface_ByteIndex, _ExampleByInterface_ByteLength, null);
         _ExampleByInterface = DeserializationFactory.Instance.CreateBasedOnType <IExample>(childData, this);
     }
     _ExampleByInterface_Accessed = true;
 }
Ejemplo n.º 16
0
 private void LazinateContents()
 {
     if (LazinatorMemoryStorage.Length == 0)
     {
         _Contents = null;
     }
     else
     {
         LazinatorMemory childData = GetChildSlice(LazinatorMemoryStorage, _Contents_ByteIndex, _Contents_ByteLength, null);
         _Contents = DeserializationFactory.Instance.CreateBaseOrDerivedType(1093, (c, p) => new TwoByteLengths(c, p), childData, this);
     }
     _Contents_Accessed = true;
 }
Ejemplo n.º 17
0
 private void LazinateNonNullValue()
 {
     if (LazinatorMemoryStorage.Length == 0)
     {
         _NonNullValue = default(T);
     }
     else
     {
         LazinatorMemory childData = GetChildSlice(LazinatorMemoryStorage, _NonNullValue_ByteIndex, _NonNullValue_ByteLength, null);
         _NonNullValue = DeserializationFactory.Instance.CreateBasedOnType <T>(childData);
     }
     _NonNullValue_Accessed = true;
 }
Ejemplo n.º 18
0
 private void LazinateRemoteLevel1Item()
 {
     if (LazinatorMemoryStorage.Length == 0)
     {
         _RemoteLevel1Item = null;
     }
     else
     {
         LazinatorMemory childData = GetChildSlice(LazinatorMemoryStorage, _RemoteLevel1Item_ByteIndex, _RemoteLevel1Item_ByteLength, null);
         _RemoteLevel1Item = DeserializationFactory.Instance.CreateBaseOrDerivedType(254, (c, p) => new Remote <WGuid, RemoteLevel1>(c, p), childData, this);
     }
     _RemoteLevel1Item_Accessed = true;
 }
Ejemplo n.º 19
0
 private void LazinateRecursiveClass()
 {
     if (LazinatorMemoryStorage.Length == 0)
     {
         _RecursiveClass = null;
     }
     else
     {
         LazinatorMemory childData = GetChildSlice(LazinatorMemoryStorage, _RecursiveClass_ByteIndex, _RecursiveClass_ByteLength, null);
         _RecursiveClass = DeserializationFactory.Instance.CreateBaseOrDerivedType(1047, (c, p) => new RecursiveExample(c, p), childData, this);
     }
     _RecursiveClass_Accessed = true;
 }
Ejemplo n.º 20
0
 private void LazinateBuckets()
 {
     if (LazinatorMemoryStorage.Length == 0)
     {
         _Buckets = null;
     }
     else
     {
         LazinatorMemory childData = GetChildSlice(LazinatorMemoryStorage, _Buckets_ByteIndex, _Buckets_ByteLength, null);
         _Buckets = DeserializationFactory.Instance.CreateBaseOrDerivedType(201, (c, p) => new LazinatorList <DictionaryBucket <TKey, TValue> >(c, p), childData, this);
     }
     _Buckets_Accessed = true;
 }
Ejemplo n.º 21
0
 private void LazinateClosedGenericBase()
 {
     if (LazinatorMemoryStorage.Length == 0)
     {
         _ClosedGenericBase = null;
     }
     else
     {
         LazinatorMemory childData = GetChildSlice(LazinatorMemoryStorage, _ClosedGenericBase_ByteIndex, _ClosedGenericBase_ByteLength, null);
         _ClosedGenericBase = DeserializationFactory.Instance.CreateBaseOrDerivedType(1033, (c, p) => new OpenGeneric <Base>(c, p), childData, this);
     }
     _ClosedGenericBase_Accessed = true;
 }
Ejemplo n.º 22
0
 private void LazinateMyListSerialized()
 {
     if (LazinatorMemoryStorage.Length == 0)
     {
         _MyListSerialized       = default(List <ExampleChild>);
         _MyListSerialized_Dirty = true;
     }
     else
     {
         LazinatorMemory childData = GetChildSlice(LazinatorMemoryStorage, _MyListSerialized_ByteIndex, _MyListSerialized_ByteLength, null); _MyListSerialized = ConvertFromBytes_List_GExampleChild_g(childData);
     }
     _MyListSerialized_Accessed = true;
 }
Ejemplo n.º 23
0
 private void LazinateMyNullableT()
 {
     if (LazinatorMemoryStorage.Length == 0)
     {
         _MyNullableT = default(T?);
     }
     else
     {
         LazinatorMemory childData = GetChildSlice(LazinatorMemoryStorage, _MyNullableT_ByteIndex, _MyNullableT_ByteLength, null);
         _MyNullableT = DeserializationFactory.Instance.CreateBasedOnType <T?>(childData, this);
     }
     _MyNullableT_Accessed = true;
 }
Ejemplo n.º 24
0
 private void LazinateLazinatorExample()
 {
     if (LazinatorMemoryStorage.Length == 0)
     {
         _LazinatorExample = null;
     }
     else
     {
         LazinatorMemory childData = GetChildSlice(LazinatorMemoryStorage, _LazinatorExample_ByteIndex, _LazinatorExample_ByteLength, null);
         _LazinatorExample = DeserializationFactory.Instance.CreateBaseOrDerivedType(1012, (c, p) => new Example(c, p), childData, this);
     }
     _LazinatorExample_Accessed = true;
 }
Ejemplo n.º 25
0
 private void LazinateMyQueueInt()
 {
     if (LazinatorMemoryStorage.Length == 0)
     {
         _MyQueueInt       = default(Queue <Int32>);
         _MyQueueInt_Dirty = true;
     }
     else
     {
         LazinatorMemory childData = GetChildSlice(LazinatorMemoryStorage, _MyQueueInt_ByteIndex, _MyQueueInt_ByteLength, null); _MyQueueInt = ConvertFromBytes_Queue_Gint_g(childData);
     }
     _MyQueueInt_Accessed = true;
 }
Ejemplo n.º 26
0
 private void LazinateAbstractProperty()
 {
     if (LazinatorMemoryStorage.Length == 0)
     {
         _AbstractProperty = null;
     }
     else
     {
         LazinatorMemory childData = GetChildSlice(LazinatorMemoryStorage, _AbstractProperty_ByteIndex, _AbstractProperty_ByteLength, null);
         _AbstractProperty = DeserializationFactory.Instance.CreateAbstractType <Abstract1>(childData, this);
     }
     _AbstractProperty_Accessed = true;
 }
Ejemplo n.º 27
0
 private void LazinateFirstNode()
 {
     if (LazinatorMemoryStorage.Length == 0)
     {
         _FirstNode = null;
     }
     else
     {
         LazinatorMemory childData = GetChildSlice(LazinatorMemoryStorage, _FirstNode_ByteIndex, _FirstNode_ByteLength, null);
         _FirstNode = DeserializationFactory.Instance.CreateBaseOrDerivedType(224, (c, p) => new LazinatorLinkedListNode <T>(c, p), childData, this);
     }
     _FirstNode_Accessed = true;
 }
Ejemplo n.º 28
0
 private void LazinateMyListNonLazinatorType()
 {
     if (LazinatorMemoryStorage.Length == 0)
     {
         _MyListNonLazinatorType       = default(List <NonLazinatorClass>);
         _MyListNonLazinatorType_Dirty = true;
     }
     else
     {
         LazinatorMemory childData = GetChildSlice(LazinatorMemoryStorage, _MyListNonLazinatorType_ByteIndex, _MyListNonLazinatorType_ByteLength, null); _MyListNonLazinatorType = ConvertFromBytes_List_GNonLazinatorClass_g(childData);
     }
     _MyListNonLazinatorType_Accessed = true;
 }
Ejemplo n.º 29
0
 private void LazinateMyT()
 {
     if (LazinatorMemoryStorage.Length == 0)
     {
         _MyT = default(T);
         _MyT.LazinatorParents = new LazinatorParentsCollection(this);
     }
     else
     {
         LazinatorMemory childData = GetChildSlice(LazinatorMemoryStorage, _MyT_ByteIndex, _MyT_ByteLength, null);
         _MyT = DeserializationFactory.Instance.CreateBasedOnType <T>(childData, this);
     }
     _MyT_Accessed = true;
 }
Ejemplo n.º 30
0
        public Task <ILazinator> Get <TKey>(ILazinator key) where TKey : ILazinator
        {
            string stringKey = key.ToString();

            if (Storage.ContainsKey(stringKey))
            {
                ReadOnlyMemory <byte> memory          = Storage[stringKey];
                LazinatorMemory       lazinatorMemory = new LazinatorMemory(memory);
                ILazinator            result;
                result = DeserializationFactory.Instance.CreateFromBytesIncludingID(lazinatorMemory);
                return(Task.FromResult(result));
            }
            return(Task.FromResult(default(ILazinator)));
        }