2.2.3.3 Data Block
The general structure of the data block is similar to that of the Parameter block, except that the length of the buffer portion is measured in bytes.
-
SMB_Data { USHORT ByteCount; UCHAR Bytes[ByteCount] (variable); }
|
|
|
|
|
|
|
|
|
|
1 |
|
|
|
|
|
|
|
|
|
2 |
|
|
|
|
|
|
|
|
|
3 |
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ByteCount |
Bytes (variable) |
||||||||||||||||||||||||||||||
... |
ByteCount (2 bytes): The size, in bytes, of the Bytes field. This field can be 0x0000, indicating that the Bytes field is empty. Because the SMB_Parameters.Words field is unaligned and the SMB_Data.ByteCount field is two bytes in size, the first byte of SMB_Data.Bytes is also unaligned.
Bytes (variable): The message-specific data structure. The size of this field MUST be ByteCount bytes. If ByteCount is 0x0000, this field is not included.