Exemplo n.º 1
0
 public PkgRootObject(PkgFile parentFile)
     : base(parentFile)
 {
     name = string.Empty;
     Elements.Add(new PkgValue(parentFile));
     Elements.Add(new PkgValue(parentFile));
 }
Exemplo n.º 2
0
        public static PkgFile ReadJson(Stream stream)
        {
            var file = new PkgFile();

            using (var reader = new JsonTextReader(new StreamReader(stream)))
            {
                file.RootItem.FromJson(reader);
            }
            return(file);
        }
Exemplo n.º 3
0
        public static PkgFile ReadPkg(Stream stream)
        {
            var file = new PkgFile();

            using (var reader = new PkgBinaryReader(stream))
            {
                file.RootItem.Read(reader);
            }
            return(file);
        }
Exemplo n.º 4
0
 public PkgObject(PkgFile parentFile)
     : base(parentFile, x => new PkgPair(x))
 {
     Version = 1;
 }
Exemplo n.º 5
0
 public PkgPairV1(PkgFile parentFile)
     : base(parentFile)
 {
     Unknown = 0;
 }
Exemplo n.º 6
0
 public PkgPair(PkgFile parentFile)
     : base(parentFile)
 {
 }
Exemplo n.º 7
0
 public PkgPairBase(PkgFile parentFile)
     : base(parentFile)
 {
     NameOffsetType = new PkgOffsetType();
 }
Exemplo n.º 8
0
 public PkgValue(PkgFile parentFile)
     : base(parentFile)
 {
     valueOffsetType = new PkgOffsetType();
 }
Exemplo n.º 9
0
 public PkgArray(PkgFile parentFile, Func <PkgFile, T> factory)
     : this(parentFile)
 {
     elementFactory = factory;
 }
Exemplo n.º 10
0
 private PkgArray(PkgFile parentFile)
     : base(parentFile)
 {
     elements = new List <T>();
 }
Exemplo n.º 11
0
 public PkgComplexValue(PkgFile parentFile)
     : base(parentFile)
 {
 }
Exemplo n.º 12
0
 public PkgChunk(PkgFile parentFile)
 {
     this.parentFile = parentFile;
 }
Exemplo n.º 13
0
 public PkgDataArrayReference(PkgFile parentFile)
     : base(parentFile)
 {
 }
Exemplo n.º 14
0
 public PkgDataArray(PkgFile parentFile)
     : base(parentFile)
 {
 }
Exemplo n.º 15
0
 public PkgValue(PkgFile parentFile)
     : base(parentFile)
 {
     ValueOffsetType  = new PkgOffsetType();
     ComplexValueData = new PkgObject(parentFile);
 }
Exemplo n.º 16
0
 public PkgArray(PkgFile parentFile, Func <PkgFile, T> factory)
     : base(parentFile)
 {
     elements       = new List <T>();
     elementFactory = factory;
 }
Exemplo n.º 17
0
 public PkgDataArrayReference(PkgFile parentFile)
     : base(parentFile)
 {
     reference = string.Empty;
 }