Beispiel #1
0
 internal LunInfo(TargetInfo targetInfo, long lun, LunClass type, bool removable, string vendor, string product, string revision)
 {
     _targetInfo      = targetInfo;
     _lun             = lun;
     _deviceType      = type;
     _removable       = removable;
     _vendorId        = vendor;
     _productId       = product;
     _productRevision = revision;
 }
Beispiel #2
0
 internal LunInfo(TargetInfo targetInfo, long lun, LunClass type, bool removable, string vendor, string product,
                  string revision)
 {
     Target          = targetInfo;
     Lun             = lun;
     DeviceType      = type;
     Removable       = removable;
     VendorId        = vendor;
     ProductId       = product;
     ProductRevision = revision;
 }
Beispiel #3
0
        public override void ReadFrom(byte[] buffer, int offset, int count)
        {
            if (count < 36)
            {
                _truncated = true;
                return;
            }

            _deviceType = (LunClass)(buffer[0] & 0x1F);
            _removable  = (buffer[1] & 0x80) != 0;
            _version    = buffer[2];

            _vendorId        = Utilities.BytesToString(buffer, 8, 8);
            _productId       = Utilities.BytesToString(buffer, 16, 16);
            _productRevision = Utilities.BytesToString(buffer, 32, 4);
        }
        public override void ReadFrom(byte[] buffer, int offset, int count)
        {
            if (count < 36)
            {
                _truncated = true;
                return;
            }

            _deviceType = (LunClass)(buffer[0] & 0x1F);
            _removable = (buffer[1] & 0x80) != 0;
            _version = buffer[2];

            _vendorId = Utilities.BytesToString(buffer, 8, 8);
            _productId = Utilities.BytesToString(buffer, 16, 16);
            _productRevision = Utilities.BytesToString(buffer, 32, 4);
        }
Beispiel #5
0
 internal LunInfo(TargetInfo targetInfo, long lun, LunClass type, bool removable, string vendor, string product, string revision)
 {
     _targetInfo = targetInfo;
     _lun = lun;
     _deviceType = type;
     _removable = removable;
     _vendorId = vendor;
     _productId = product;
     _productRevision = revision;
 }