コード例 #1
0
 public static NonLazinatorClass CloneOrChange_NonLazinatorClass(NonLazinatorClass itemToClone, Func <ILazinator, ILazinator> cloneOrChangeFunc, bool avoidCloningIfPossible)
 {
     return(itemToClone == null ? null : new NonLazinatorClass()
     {
         MyInt = itemToClone.MyInt, MyString = itemToClone.MyString
     });
 }
コード例 #2
0
 public static void ConvertToBytes_NonLazinatorClass(ref BufferWriter writer, NonLazinatorClass itemToConvert, LazinatorSerializationOptions options)
 {
     if (itemToConvert == null)
     {
         return;
     }
     CompressedIntegralTypes.WriteCompressedInt(ref writer, itemToConvert.MyInt);
     writer.WriteStringUtf8WithVarIntPrefix(itemToConvert.MyString);
 }
コード例 #3
0
 private void LazinateNonLazinatorClass()
 {
     if (LazinatorMemoryStorage.Length == 0)
     {
         _NonLazinatorClass = default(NonLazinatorClass);
     }
     else
     {
         LazinatorMemory childData = GetChildSlice(LazinatorMemoryStorage, _NonLazinatorClass_ByteIndex, _NonLazinatorClass_ByteLength, null); _NonLazinatorClass = NonLazinatorDirectConverter.ConvertFromBytes_NonLazinatorClass(childData);
     }
     _NonLazinatorClass_Accessed = true;
 }