Coverage Report - org.jscsi.target.scsi.cdb.ReadCapacity10Cdb
 
Classes in this File Line Coverage Branch Coverage Complexity
ReadCapacity10Cdb
0%
0/4
N/A
1
 
 1  
 package org.jscsi.target.scsi.cdb;
 2  
 
 3  
 
 4  
 import java.nio.ByteBuffer;
 5  
 
 6  
 import org.jscsi.target.util.BitManip;
 7  
 import org.jscsi.target.util.ReadWrite;
 8  
 
 9  
 
 10  
 /**
 11  
  * This class represents Command Descriptor Blocks for the <code>READ CAPACITY (10)</code> SCSI command.
 12  
  * 
 13  
  * @author Andreas Ergenzinger
 14  
  */
 15  
 public class ReadCapacity10Cdb extends ReadCapacityCdb {
 16  
 
 17  
     public ReadCapacity10Cdb (ByteBuffer buffer) {
 18  0
         super(buffer);
 19  0
     }
 20  
 
 21  
     @Override
 22  
     protected long deserializeLogicalBlockAddress (ByteBuffer buffer) {
 23  0
         return ReadWrite.readUnsignedInt(buffer, 2);
 24  
     }
 25  
 
 26  
     @Override
 27  
     protected boolean deserializePartialMediumIndicator (ByteBuffer buffer) {
 28  0
         return BitManip.getBit(buffer.get(8),// byte
 29  
                 0);// bitNumber
 30  
     }
 31  
 
 32  
 }