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