Пример #1
0
        public static ArcadeGame Deserialize(Stream stream)
        {
            ArcadeGame arcadeGame = Pool.Get <ArcadeGame>();

            ArcadeGame.Deserialize(stream, arcadeGame, false);
            return(arcadeGame);
        }
Пример #2
0
 public static ArcadeGame Deserialize(byte[] buffer, ArcadeGame instance, bool isDelta = false)
 {
     using (MemoryStream memoryStream = new MemoryStream(buffer))
     {
         ArcadeGame.Deserialize(memoryStream, instance, isDelta);
     }
     return(instance);
 }
Пример #3
0
        public static ArcadeGame Deserialize(byte[] buffer)
        {
            ArcadeGame arcadeGame = Pool.Get <ArcadeGame>();

            using (MemoryStream memoryStream = new MemoryStream(buffer))
            {
                ArcadeGame.Deserialize(memoryStream, arcadeGame, false);
            }
            return(arcadeGame);
        }
Пример #4
0
 public void FromProto(Stream stream, bool isDelta = false)
 {
     ArcadeGame.Deserialize(stream, this, isDelta);
 }