Examples of ByteBufferInputStream


Examples of org.jscsi.scsi.protocol.util.ByteBufferInputStream

      this(allocationLength, pmi, false, false, logicalBlockAddress);
   }

   public void decode(byte[] header, ByteBuffer input) throws IOException
   {
      DataInputStream in = new DataInputStream(new ByteBufferInputStream(input));

      int operationCode = in.readUnsignedByte();
      int serviceAction = in.readUnsignedByte() & 0x1F;
      this.logicalBlockAddress = in.readLong();
      long mss = in.readUnsignedShort();
View Full Code Here

Examples of org.jscsi.scsi.protocol.util.ByteBufferInputStream

      this(selfTestCode, pf, selfTest, devOffL, unitOffL, parameterListLength, false, false);
   }

   public void decode(byte[] header, ByteBuffer input) throws IOException
   {
      DataInputStream in = new DataInputStream(new ByteBufferInputStream(input));

      int operationCode = in.readUnsignedByte();
      int tmp = in.readUnsignedByte();
      this.unitOffL = (tmp & 0x01) == 1;
      this.devOffL = ((tmp >>> 1) & 1) == 1;
View Full Code Here

Examples of org.jscsi.scsi.protocol.util.ByteBufferInputStream

   }

   @Override
   public void decode(byte[] header, ByteBuffer input) throws IOException
   {
      DataInputStream in = new DataInputStream(new ByteBufferInputStream(input));

      int operationCode = in.readUnsignedByte();
      super.decodeByte1(in.readUnsignedByte());

      long mss = in.readUnsignedShort();
View Full Code Here

Examples of org.jscsi.scsi.protocol.util.ByteBufferInputStream

      super(OPERATION_CODE, linked, normalACA);
   }

   public void decode(byte[] header, ByteBuffer input) throws IOException
   {
      DataInputStream in = new DataInputStream(new ByteBufferInputStream(input));

      int operationCode = in.readUnsignedByte();
      in.readInt();
      super.setControl(in.readUnsignedByte());
View Full Code Here

Examples of org.jscsi.scsi.protocol.util.ByteBufferInputStream

      this(pageFormat, savePages, parameterListLength, false, false);
   }

   public void decode(byte[] header, ByteBuffer input) throws IOException
   {
      DataInputStream in = new DataInputStream(new ByteBufferInputStream(input));
      int tmp;

      int operationCode = in.readUnsignedByte();
      tmp = in.readUnsignedByte();
      this.SP = (tmp & 0x01) != 0;
View Full Code Here

Examples of org.jscsi.scsi.protocol.util.ByteBufferInputStream

      this(dbd, llbaa, pageControl, pageCode, subPageCode, false, false, allocationLength);
   }

   public void decode(byte[] header, ByteBuffer input) throws IOException
   {
      DataInputStream in = new DataInputStream(new ByteBufferInputStream(input));
      int tmp;

      int operationCode = in.readUnsignedByte();
      tmp = in.readUnsignedByte();
      this.setDBD((tmp & 0x08) != 0);
View Full Code Here

Examples of org.jscsi.scsi.protocol.util.ByteBufferInputStream

   }

   @Override
   public void decode(byte[] header, ByteBuffer input) throws IOException
   {
      DataInputStream in = new DataInputStream(new ByteBufferInputStream(input));

      int operationCode = in.readUnsignedByte();
      super.decodeByte1(in.readUnsignedByte());

      // CAUTION: Signed longs represent unsigned longs
View Full Code Here

Examples of org.jscsi.scsi.protocol.util.ByteBufferInputStream

      this(useDescriptorFormat, false, false, allocationLength);
   }

   public void decode(byte[] header, ByteBuffer input) throws IOException
   {
      DataInputStream in = new DataInputStream(new ByteBufferInputStream(input));

      int operationCode = in.readUnsignedByte();
      int format = in.readUnsignedByte() & 0x01;
      this.DESC = (format == 1);
      in.readShort();
View Full Code Here

Examples of org.jscsi.scsi.protocol.util.ByteBufferInputStream

      this(false, false, logicalBlockAddress, transferLength);
   }

   public void decode(byte[] header, ByteBuffer input) throws IOException
   {
      DataInputStream in = new DataInputStream(new ByteBufferInputStream(input));

      int operationCode = in.readUnsignedByte();

      long msb = in.readUnsignedByte() & 0x1F;
      long lss = in.readUnsignedShort();
View Full Code Here

Examples of org.jscsi.scsi.protocol.util.ByteBufferInputStream

      this(pmi, false, false, logicalBlockAddress);
   }

   public void decode(byte[] header, ByteBuffer input) throws IOException
   {
      DataInputStream in = new DataInputStream(new ByteBufferInputStream(input));

      int operationCode = in.readUnsignedByte();
      in.readByte();
      long mss = in.readUnsignedShort();
      long lss = in.readUnsignedShort();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.