Esempio n. 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);
Esempio n. 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);
Esempio n. 3
0
 public static T Deserialize <T>(this ISerializer serializer, byte[] buffer, SerializationOptions options = null) => serializer.Deserialize <T>(buffer, 0, -1, options);
Esempio n. 4
0
 public static object Deserialize(this ISerializer serializer, byte[] buffer, Type type, SerializationOptions options = null) => Deserialize(serializer, buffer, 0, -1, type, options);