示例#1
0
 public ModePage0(byte[] buffer, int offset)
 {
     PS         = (buffer[offset + 0] & 0x80) != 0;
     SPF        = (buffer[offset + 0] & 0x40) != 0;
     PageCode   = (ModePageCodeName)(buffer[offset + 0] & 0x3F);
     PageLength = buffer[offset + 1];
 }
示例#2
0
 public SubModePage(byte[] buffer, int offset)
 {
     PS          = (buffer[offset + 0] & 0x80) != 0;
     SPF         = (buffer[offset + 0] & 0x40) != 0;
     PageCode    = (ModePageCodeName)(buffer[offset + 0] & 0x3F);
     SubPageCode = buffer[offset + 1];
     PageLength  = BigEndianConverter.ToUInt16(buffer, 2);
 }
示例#3
0
 public ModeSense6CommandDescriptorBlock(byte[] buffer, int offset) : base()
 {
     OpCode           = (SCSIOpCodeName)buffer[offset + 0];
     DBD              = (buffer[offset + 1] & 0x08) != 0;
     PC               = (byte)(buffer[offset + 2] >> 6);
     PageCode         = (ModePageCodeName)(buffer[offset + 2] & 0x3F);
     SubpageCode      = buffer[offset + 3];
     AllocationLength = buffer[offset + 4];
     Control          = buffer[offset + 5];
 }
示例#4
0
        public ushort PageLength; // excluding this and previous bytes

        protected SubModePage(ModePageCodeName pageCode, byte subPageCode, ushort pageLength)
        {
            PageCode   = pageCode;
            PageLength = pageLength;
        }
示例#5
0
        public byte PageLength;       // excluding this and previous bytes

        protected ModePage0(ModePageCodeName pageCode, byte pageLength)
        {
            PageCode   = pageCode;
            PageLength = pageLength;
        }