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