Exemple #1
0
 public void Write(IBufferWriter <byte> bufferWriter, T value)
 // ReSharper disable once HeapView.PossibleBoxingAllocation
 => UntypedSerializer.Write(bufferWriter, value, SerializedType);
Exemple #2
0
 public string Write(T value)
 // ReSharper disable once HeapView.PossibleBoxingAllocation
 => UntypedSerializer.Write(value, SerializedType);
Exemple #3
0
 public T Read(ReadOnlyMemory <byte> data)
 => (T)UntypedSerializer.Read(data, SerializedType) !;
Exemple #4
0
 public T Read(string data)
 => (T)UntypedSerializer.Read(data, SerializedType) !;