public static ModuleMessage Deserialize(Stream stream) { ModuleMessage moduleMessage = Pool.Get <ModuleMessage>(); ModuleMessage.Deserialize(stream, moduleMessage, false); return(moduleMessage); }
public static ModuleMessage Deserialize(byte[] buffer, ModuleMessage instance, bool isDelta = false) { using (MemoryStream memoryStream = new MemoryStream(buffer)) { ModuleMessage.Deserialize(memoryStream, instance, isDelta); } return(instance); }
public static ModuleMessage Deserialize(byte[] buffer) { ModuleMessage moduleMessage = Pool.Get <ModuleMessage>(); using (MemoryStream memoryStream = new MemoryStream(buffer)) { ModuleMessage.Deserialize(memoryStream, moduleMessage, false); } return(moduleMessage); }
public void FromProto(Stream stream, bool isDelta = false) { ModuleMessage.Deserialize(stream, this, isDelta); }