Beispiel #1
0
 public static T Deserialize <T>(this ISerializer serializer, byte[] buffer, int offset, int count, SerializationOptions options = null) => count > 0 ?
 serializer.Deserialize <T>(new ReadOnlySpan <byte>(buffer, offset, count), options) :
 serializer.Deserialize <T>(new ReadOnlySpan <byte>(buffer), options);
Beispiel #2
0
 public static object Deserialize(this ISerializer serializer, byte[] buffer, int offset, int count, Type type, SerializationOptions options = null) => count > 0 ?
 serializer.Deserialize(new ReadOnlySpan <byte>(buffer, offset, count), type, options) :
 serializer.Deserialize(new ReadOnlySpan <byte>(buffer), type, options);
Beispiel #3
0
 public static T Deserialize <T>(this ISerializer serializer, byte[] buffer, SerializationOptions options = null) => serializer.Deserialize <T>(buffer, 0, -1, options);
Beispiel #4
0
 public static object Deserialize(this ISerializer serializer, byte[] buffer, Type type, SerializationOptions options = null) => Deserialize(serializer, buffer, 0, -1, type, options);