public void Save(IILGen ilGenerator, Action <IILGen> pushWriterOrCtx, Action <IILGen> pushValue) { pushWriterOrCtx(ilGenerator); pushValue(ilGenerator); if (_signed) { ilGenerator .ConvI8() .Call(() => default(AbstractBufferedWriter).WriteVInt64(0)); } else { ilGenerator .ConvU8() .Call(() => default(AbstractBufferedWriter).WriteVUInt64(0)); } }
public void Save(IILGen ilGenerator, Action <IILGen> pushWriter, Action <IILGen>?pushCtx, Action <IILGen> pushValue) { pushWriter(ilGenerator); pushValue(ilGenerator); if (_signed) { ilGenerator .ConvI8() .Call(typeof(SpanWriter).GetMethod(nameof(SpanWriter.WriteVInt64)) !); } else { ilGenerator .ConvU8() .Call(typeof(SpanWriter).GetMethod(nameof(SpanWriter.WriteVUInt64)) !); } }
public void GenerateSave(IILGen ilGenerator, Action<IILGen> pushWriter, Action<IILGen> pushCtx, Action<IILGen> pushValue, Type valueType) { pushWriter(ilGenerator); pushValue(ilGenerator); if (_signed) { ilGenerator .ConvI8() .Call(() => default(AbstractBufferedWriter).WriteVInt64(0)); } else { ilGenerator .ConvU8() .Call(() => default(AbstractBufferedWriter).WriteVUInt64(0)); } }