View Javadoc

1   package org.jscsi.target.scsi.sense;
2   
3   
4   import java.nio.ByteBuffer;
5   
6   import org.jscsi.target.scsi.ISerializable;
7   
8   
9   /**
10   * In additional to the fixed fields that are part of both fixed format and descriptor format sense data, additional
11   * data can be included in the optional ADDITIONAL SENSE BYTES field.
12   * <p>
13   * Since the jSCSI Target currently does not have any additional information to send, the serialized length in bytes of
14   * all ADDITTIONAL SENSE BYTES objects is fixed to zero.
15   * 
16   * @author Andreas Ergenzinger
17   */
18  public final class AdditionalSenseBytes implements ISerializable {
19  
20      private static final int SIZE = 0;
21  
22      public void serialize (ByteBuffer byteBuffer, int index) {
23          // do nothing
24      }
25  
26      public int size () {
27          return SIZE;
28      }
29  
30  }