예제 #1
0
        public DeviceElementValue(byte[] value)
        {
            _parentObject = Utilities.ToGuidLittleEndian(value, 0x00);

            // -- Start of data structure --

            _record = DeviceRecord.Parse(value, 0x10);
        }
        protected override void DoParse(byte[] data, int offset)
        {
            base.DoParse(data, offset);

            _container = DeviceRecord.Parse(data, offset + 0x34);

            int pathStart = 0x34 + _container.Size;

            _path = Encoding.Unicode.GetString(data, offset + pathStart, Length - pathStart);
        }
 public DeviceElementValue(byte[] value)
 {
     _parentObject = Utilities.ToGuidLittleEndian(value, 0x00);
     _record = DeviceRecord.Parse(value, 0x10);
 }