You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
823 B
32 lines
823 B
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace apphost_extract
|
|
{
|
|
public class AppHostFileEntry
|
|
{
|
|
public int Offset { get; set; }
|
|
public int Size { get; set; }
|
|
public string RelativePath { get; set; }
|
|
|
|
private byte[] Raw;
|
|
|
|
private const int FILE_ENTRY_SIZE = 0x12;
|
|
|
|
public AppHostFileEntry(FileStream File)
|
|
{
|
|
byte[] entryBuffer = new byte[FILE_ENTRY_SIZE];
|
|
File.Read(entryBuffer, 0, entryBuffer.Length);
|
|
Raw = entryBuffer;
|
|
|
|
byte[] stringBuffer = new byte[Raw[0x11]];
|
|
File.Read(stringBuffer, 0, stringBuffer.Length);
|
|
RelativePath = Encoding.UTF8.GetString(stringBuffer);
|
|
}
|
|
}
|
|
}
|