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