12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- using System;
- namespace ProtoBuf
- {
-
-
-
- public interface IProtoOutput<TOutput>
- {
-
-
-
- void Serialize<T>(TOutput destination, T value, object userState = null);
- }
-
-
-
-
- public interface IMeasuredProtoOutput<TOutput> : IProtoOutput<TOutput>
- {
-
-
-
- MeasureState<T> Measure<T>(T value, object userState = null);
-
-
-
- void Serialize<T>(MeasureState<T> measured, TOutput destination);
- }
-
-
-
-
-
-
- public struct MeasureState<T> : IDisposable
-
-
-
-
- {
-
-
-
- public void Dispose() => throw new NotImplementedException();
-
-
-
- public long Length => throw new NotImplementedException();
- }
- }
|