private void VerifyRopReadStreamResponse(RopReadStreamResponse ropReadStreamResponse, byte inputHandleIndex)
{
// Add the debug information
Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R3216");
// Verify MS-OXCROPS requirement: MS-OXCROPS_R3216
Site.CaptureRequirementIfAreEqual<Type>(
typeof(byte),
ropReadStreamResponse.RopId.GetType(),
3216,
@"[In RopReadStream ROP Response Buffer]RopId (1 byte): An unsigned integer.");
// Add the debug information
Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R3218");
// Verify MS-OXCROPS requirement: MS-OXCROPS_R3218
Site.CaptureRequirementIfAreEqual<byte>(
(byte)RopId.RopReadStream,
ropReadStreamResponse.RopId,
3218,
@"[In RopReadStream ROP Response Buffer,RopId (1 byte)]For this operation[RopReadStream], this field is set to 0x2C.");
// Add the debug information
Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R3219");
// Verify MS-OXCROPS requirement: MS-OXCROPS_R3219
Site.CaptureRequirementIfAreEqual<Type>(
typeof(byte),
ropReadStreamResponse.InputHandleIndex.GetType(),
3219,
@"[In RopReadStream ROP Response Buffer]InputHandleIndex (1 byte): An unsigned integer.");
// Add the debug information
Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R3220");
// Verify MS-OXCROPS requirement: MS-OXCROPS_R3220
Site.CaptureRequirementIfAreEqual<byte>(
inputHandleIndex,
ropReadStreamResponse.InputHandleIndex,
3220,
@"[In RopReadStream ROP Response Buffer,InputHandleIndex (1 byte)]This index MUST be set to the value specified in the InputHandleIndex field in the request.");
// Add the debug information
Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R3222");
// Verify MS-OXCROPS requirement: MS-OXCROPS_R3222
Site.CaptureRequirementIfAreEqual<Type>(
typeof(uint),
ropReadStreamResponse.ReturnValue.GetType(),
3222,
@"[In RopReadStream ROP Response Buffer]ReturnValue (4 bytes): An unsigned integer.");
// Add the debug information
Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R3224");
// Verify MS-OXCROPS requirement: MS-OXCROPS_R3224
Site.CaptureRequirementIfAreEqual<Type>(
typeof(ushort),
ropReadStreamResponse.DataSize.GetType(),
3224,
@"[In RopReadStream ROP Response Buffer]DataSize (2 bytes): An unsigned integer.");
// Add the debug information
Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R3229");
// Verify MS-OXCROPS requirement: MS-OXCROPS_R3229
Site.CaptureRequirementIfAreEqual<Type>(
typeof(byte[]),
ropReadStreamResponse.Data.GetType(),
3229,
@"[In RopReadStream ROP Response Buffer]Data (variable): An array of bytes.");
// Add the debug information
Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R3231");
// Verify MS-OXCROPS requirement: MS-OXCROPS_R3231
Site.CaptureRequirementIfAreEqual<int>(
ropReadStreamResponse.DataSize,
ropReadStreamResponse.Data.Length,
3231,
@"[In RopReadStream ROP Response Buffer,Data (variable)]The size of this field, in bytes, is specified by the DataSize field.");
}
#endregion