public static SleepingBag DeserializeLength(Stream stream, int length) { SleepingBag sleepingBag = Pool.Get <SleepingBag>(); SleepingBag.DeserializeLength(stream, length, sleepingBag, false); return(sleepingBag); }
public virtual void ReadFromStream(Stream stream, int size, bool isDelta = false) { SleepingBag.DeserializeLength(stream, size, this, isDelta); }