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 }); }
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); }
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; }