Logo Search packages:      
Sourcecode: k9copy version File versions  Download package

bool K3bDevice::Device::readCapacity ( K3b::Msf r  )  const

Refers to MMC command READ CAPACITY

Definition at line 679 of file k3bdevice_mmc.cpp.

Referenced by diskInfo(), and readToc().

{
  ScsiCommand cmd( this );
  cmd[0] = MMC_READ_CAPACITY;
  unsigned char buf[8];
  ::memset( buf, 0, 8 );
  if( cmd.transport( TR_DIR_READ, buf, 8 ) == 0 ) {
    r = from4Byte( buf );
    return true;
  }
  else
    return false;
}


Generated by  Doxygen 1.6.0   Back to index