1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- using System;
- using System.Collections.Generic;
- using System.Text;
- using Utilities;
- namespace SMBLibrary.SMB1
- {
-
-
-
- public class WriteRawFinalResponse : SMB1Command
- {
- public ushort ParametersLength = 2;
-
- public ushort Count;
- public WriteRawFinalResponse() : base()
- {}
- public WriteRawFinalResponse(byte[] buffer, int offset) : base(buffer, offset, false)
- {
- Count = LittleEndianConverter.ToUInt16(this.SMBParameters, 0);
- }
- public override byte[] GetBytes(bool isUnicode)
- {
- this.SMBParameters = new byte[ParametersLength];
- LittleEndianWriter.WriteUInt16(this.SMBParameters, 0, Count);
- return base.GetBytes(isUnicode);
- }
- public override CommandName CommandName
- {
- get
- {
- return CommandName.SMB_COM_WRITE_COMPLETE;
- }
- }
- }
- }
|