Read() public method

Reads a DBPF archive from a stream.
public Read ( Stream stream ) : void
stream Stream The stream to read from.
return void
Example #1
0
        public static DBPFFile LoadResource(string file, bool isDownload = false)
        {
            var res = new DBPFFile();

            res.fname = file;
            var stream = File.OpenRead(file);

            res.Read(stream, true, isDownload);
            return(res);
        }