Пример #1
0
        /// <summary>
        /// Loads packed data from the given stream.
        /// </summary>
        /// <param name="stream">The stream to use for loading.</param>
        public static PackedData LoadFrom(Stream stream)
        {
            PackedData data = new PackedData();

            data.Load(stream);
            return(data);
        }
Пример #2
0
 // constructors...
 /// <summary>
 /// Creates new instance of the PackedDataWriter class.
 /// </summary>
 /// <param name="data">The data to use.</param>
 public PackedDataWriter(PackedData data)
 {
     this.data = data;
 }
Пример #3
0
 // constructors...
 /// <summary>
 /// Creates new instance of the PackedDataReader class.
 /// </summary>
 /// <param name="data">The data to use.</param>
 public PackedDataReader(PackedData data)
 {
     this.data = data;
 }