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]; }
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); }
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]; }
public ushort PageLength; // excluding this and previous bytes protected SubModePage(ModePageCodeName pageCode, byte subPageCode, ushort pageLength) { PageCode = pageCode; PageLength = pageLength; }
public byte PageLength; // excluding this and previous bytes protected ModePage0(ModePageCodeName pageCode, byte pageLength) { PageCode = pageCode; PageLength = pageLength; }