示例#1
0
文件: HNHDR.cs 项目: phx255/PST
 public HNHDR(int pageMapOffset, int blockSignature, int clientSignature, HID userRoot, BinaryData fillLevel)
 {
     PageMapOffset   = pageMapOffset;
     BlockSignature  = blockSignature;
     ClientSignature = clientSignature;
     UserRoot        = userRoot;
     FillLevel       = fillLevel;
 }
示例#2
0
        public static HNID OfValue(BinaryData encodedData)
        {
            var hid = HID.OfValue(encodedData);

            if (hid.Type == Constants.NID_TYPE_HID)
            {
                return(new HNID(hid));
            }

            return(new HNID(NID.OfValue(encodedData)));
        }
示例#3
0
文件: HNHDR.cs 项目: phx255/PST
        public static HNHDR OfValue(BinaryData encodedData)
        {
            var parser = BinaryDataParser.OfValue(encodedData);

            return
                (new HNHDR(
                     parser.TakeAndSkip(2).ToInt32(),
                     parser.TakeAndSkip(1).ToInt32(),
                     parser.TakeAndSkip(1).ToInt32(),
                     HID.OfValue(parser.TakeAndSkip(4)),
                     parser.TakeAndSkip(4)));
        }
示例#4
0
 public HNID(HID hid)
 {
     this.hid = hid;
 }