Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
193 changes: 0 additions & 193 deletions src/LightProto/PooledSegmentBufferWriter.cs

This file was deleted.

11 changes: 0 additions & 11 deletions src/LightProto/PublicAPI/net/PublicAPI.Unshipped.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,4 @@
#nullable enable
static LightProto.Serializer.DeserializeAsync<T>(System.IO.Stream! source, LightProto.IProtoReader<T>! reader, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Threading.Tasks.Task<T>!
static LightProto.Serializer.DeserializeAsync<T>(System.IO.Stream! source, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Threading.Tasks.Task<T>!
static LightProto.Serializer.DeserializeDynamicallyAsync<T>(System.IO.Stream! source, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Threading.Tasks.Task<T>!
static LightProto.Serializer.DeserializeNonGenericAsync(System.IO.Stream! source, LightProto.IProtoReader! reader, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Threading.Tasks.Task<object!>!
static LightProto.Serializer.DeserializeNonGenericAsync(System.Type! type, System.IO.Stream! source, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Threading.Tasks.Task<object!>!
static LightProto.Serializer.SerializeAsync<T>(System.IO.Stream! destination, T instance, LightProto.IProtoWriter<T>! writer, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Threading.Tasks.Task!
static LightProto.Serializer.SerializeAsync<T>(System.IO.Stream! destination, T instance, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Threading.Tasks.Task!
static LightProto.Serializer.SerializeDynamicallyAsync<T>(System.IO.Stream! destination, T instance, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Threading.Tasks.Task!
static LightProto.Serializer.SerializeNonGenericAsync(System.IO.Stream! destination, object? instance, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Threading.Tasks.Task!
static LightProto.Serializer.SerializeNonGenericAsync(System.IO.Stream! destination, object? instance, LightProto.IProtoWriter! writer, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Threading.Tasks.Task!
static LightProto.Serializer.SerializeToAsync<T>(this T instance, System.IO.Stream! destination, LightProto.IProtoWriter<T>! writer, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Threading.Tasks.Task!
LightProto.IProtoWriter.CalculateLongSize(object! value) -> long
LightProto.IProtoWriter<T>.CalculateLongSize(T value) -> long
LightProto.PackedRepeatedOptimizer
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,4 @@
#nullable enable
static LightProto.Serializer.DeserializeAsync<T>(System.IO.Stream! source, LightProto.IProtoReader<T>! reader, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Threading.Tasks.Task<T>!
static LightProto.Serializer.DeserializeDynamicallyAsync<T>(System.IO.Stream! source, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Threading.Tasks.Task<T>!
static LightProto.Serializer.DeserializeNonGenericAsync(System.IO.Stream! source, LightProto.IProtoReader! reader, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Threading.Tasks.Task<object!>!
static LightProto.Serializer.DeserializeNonGenericAsync(System.Type! type, System.IO.Stream! source, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Threading.Tasks.Task<object!>!
static LightProto.Serializer.SerializeAsync<T>(System.IO.Stream! destination, T instance, LightProto.IProtoWriter<T>! writer, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Threading.Tasks.Task!
static LightProto.Serializer.SerializeDynamicallyAsync<T>(System.IO.Stream! destination, T instance, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Threading.Tasks.Task!
static LightProto.Serializer.SerializeNonGenericAsync(System.IO.Stream! destination, object? instance, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Threading.Tasks.Task!
static LightProto.Serializer.SerializeNonGenericAsync(System.IO.Stream! destination, object? instance, LightProto.IProtoWriter! writer, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Threading.Tasks.Task!
static LightProto.Serializer.SerializeToAsync<T>(this T instance, System.IO.Stream! destination, LightProto.IProtoWriter<T>! writer, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Threading.Tasks.Task!
LightProto.IProtoWriter.CalculateLongSize(object! value) -> long
LightProto.IProtoWriter<T>.CalculateLongSize(T value) -> long
LightProto.PackedRepeatedOptimizer
Expand Down
90 changes: 0 additions & 90 deletions src/LightProto/Serializer.Async.cs

This file was deleted.

28 changes: 0 additions & 28 deletions src/LightProto/Serializer.Dynamically.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,20 +43,6 @@ public static void SerializeDynamically<
#endif
T>(Stream destination, T instance) => Serialize(destination, instance, GetProtoWriter<T>());

/// <summary>
/// Asynchronously writes a fully serialized protocol-buffer message to the supplied stream.
/// The message is encoded synchronously into a pooled buffer before asynchronous I/O begins.
/// </summary>
#if NET7_0_OR_GREATER
[RequiresDynamicCode(AOTWarning)]
#endif
public static Task SerializeDynamicallyAsync<
#if NET7_0_OR_GREATER
[DynamicallyAccessedMembers(LightProtoRequiredMembers)]
#endif
T>(Stream destination, T instance, CancellationToken cancellationToken = default) =>
SerializeAsync(destination, instance, GetProtoWriter<T>(), cancellationToken);

/// <summary>
/// Creates a new instance from a protocol-buffer stream
/// </summary>
Expand All @@ -72,20 +58,6 @@ public static T DeserializeDynamically<
#endif
T>(Stream source) => Deserialize(source, GetProtoReader<T>());

/// <summary>
/// Asynchronously reads a protocol-buffer message from the supplied stream until the end of the stream.
/// The accumulated message is decoded synchronously after all input has been received.
/// </summary>
#if NET7_0_OR_GREATER
[RequiresDynamicCode(AOTWarning)]
#endif
public static Task<T> DeserializeDynamicallyAsync<
#if NET7_0_OR_GREATER
[DynamicallyAccessedMembers(LightProtoRequiredMembers)]
#endif
T>(Stream source, CancellationToken cancellationToken = default) =>
DeserializeAsync(source, GetProtoReader<T>(), cancellationToken);

/// <summary>
/// Serializes the given message to a byte array.
/// </summary>
Expand Down
11 changes: 0 additions & 11 deletions src/LightProto/Serializer.Extensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -178,17 +178,6 @@ public static byte[] ToByteArray<T>(this T message, IProtoWriter<T> writer)
public static void SerializeTo<T>(this T instance, Stream destination, IProtoWriter<T> writer) =>
Serialize(destination, instance, writer);

/// <summary>
/// Asynchronously serializes the instance to the given destination stream.
/// The instance is encoded synchronously into a pooled buffer before asynchronous I/O begins.
/// </summary>
public static Task SerializeToAsync<T>(
this T instance,
Stream destination,
IProtoWriter<T> writer,
CancellationToken cancellationToken = default
) => SerializeAsync(destination, instance, writer, cancellationToken);

/// <summary>
/// Serializes the instance to the given destination buffer.
/// </summary>
Expand Down
Loading
Loading