Example #1
0
 public object Read(DataBuffer buffer, object existing = null)
 {
     return(ReadFunction(buffer, existing));
 }
Example #2
0
 public void Write <T>(DataBuffer buffer, T instance)
 {
     Write(buffer, typeof(T), instance);
 }
Example #3
0
 private object ReadEnum(DataBuffer buffer, object arg2)
 {
     return(Enum.ToObject(ModelType, buffer.ReadByte()));
 }
Example #4
0
 public void Write(DataBuffer buffer, object instance)
 {
     WriteAction.Invoke(buffer, instance);
 }
Example #5
0
 public T Read <T>(DataBuffer buffer)
 {
     return((T)Read(buffer, typeof(T)));
 }
Example #6
0
 public override void WriteTo(DataBuffer buffer)
 {
     DynamicSerializer.Instance.Write(buffer, GetType(), this);
 }
Example #7
0
 public override void ReadFrom(DataBuffer buffer)
 {
     DynamicSerializer.Instance.Read(buffer, GetType(), this);
 }