# < Summary

Information

Class: | Renci.SshNet.Messages.Connection.ChannelExtendedDataMessage
Assembly: | Renci.SshNet
File(s): | \home\appveyor\projects\ssh-net\src\Renci.SshNet\Messages\Connection\ChannelExtendedDataMessage.cs

Line coverage
60%

Covered lines: | 18
Uncovered lines: | 12
Coverable lines: | 30
Total lines: | 82
Line coverage: | 60%

Branch coverage
N/A

Covered branches: | 0
Total branches: | 0
Branch coverage: | N/A

Method coverage

Feature is only available for sponsors

Upgrade to PRO version

# Metrics

Method | Branch coverage | Cyclomatic complexity | Line coverage
--- | --- | --- | ---
get_DataTypeCode() | 100% | 1 | 100%
get_Data() | 100% | 1 | 100%
get_BufferCapacity() | 100% | 1 | 0%
.ctor() | 100% | 1 | 100%
.ctor(...) | 100% | 1 | 100%
LoadData() | 100% | 1 | 100%
SaveData() | 100% | 1 | 0%
Process(...) | 100% | 1 | 100%

# File(s)

## \home\appveyor\projects\ssh-net\src\Renci.SshNet\Messages\Connection\ChannelExtendedDataMessage.cs

| # | Line |  | Line coverage
--- | --- | --- | --- | ---
|  | `1` |  | `namespace Renci.SshNet.Messages.Connection`
|  | `2` |  | `{`
|  | `3` |  | `/// <summary>`
|  | `4` |  | `/// Represents SSH_MSG_CHANNEL_EXTENDED_DATA message.`
|  | `5` |  | `/// </summary>`
|  | `6` |  | `[Message("SSH_MSG_CHANNEL_EXTENDED_DATA", 95)]`
|  | `7` |  | `public class ChannelExtendedDataMessage : ChannelMessage`
|  | `8` |  | `{`
|  | `9` |  | `/// <summary>`
|  | `10` |  | `/// Gets message data type code.`
|  | `11` |  | `/// </summary>`
| 92 | `12` |  | `public uint DataTypeCode { get; private set; }`
|  | `13` |  | ``
|  | `14` |  | `/// <summary>`
|  | `15` |  | `/// Gets message data.`
|  | `16` |  | `/// </summary>`
| 92 | `17` |  | `public byte[] Data { get; private set; }`
|  | `18` |  | ``
|  | `19` |  | `/// <summary>`
|  | `20` |  | `/// Gets the size of the message in bytes.`
|  | `21` |  | `/// </summary>`
|  | `22` |  | `/// <value>`
|  | `23` |  | `/// The size of the messages in bytes.`
|  | `24` |  | `/// </value>`
|  | `25` |  | `protected override int BufferCapacity`
|  | `26` |  | `{`
|  | `27` |  | `get`
| 0 | `28` |  | `{`
| 0 | `29` |  | `var capacity = base.BufferCapacity;`
| 0 | `30` |  | `capacity += 4; // DataTypeCode`
| 0 | `31` |  | `capacity += 4; // Data length`
| 0 | `32` |  | `capacity += Data.Length; // Data`
| 0 | `33` |  | `return capacity;`
| 0 | `34` |  | `}`
|  | `35` |  | `}`
|  | `36` |  | ``
|  | `37` |  | `/// <summary>`
|  | `38` |  | `/// Initializes a new instance of the <see cref="ChannelExtendedDataMessage"/> class.`
|  | `39` |  | `/// </summary>`
| 40 | `40` |  | `public ChannelExtendedDataMessage()`
| 40 | `41` |  | `{`
| 40 | `42` |  | `}`
|  | `43` |  | ``
|  | `44` |  | `/// <summary>`
|  | `45` |  | `/// Initializes a new instance of the <see cref="ChannelExtendedDataMessage"/> class.`
|  | `46` |  | `/// </summary>`
|  | `47` |  | `/// <param name="localChannelNumber">The local channel number.</param>`
|  | `48` |  | `/// <param name="dataTypeCode">The message data type code.</param>`
|  | `49` |  | `/// <param name="data">The message data.</param>`
|  | `50` |  | `public ChannelExtendedDataMessage(uint localChannelNumber, uint dataTypeCode, byte[] data)`
| 6 | `51` |  | `: base(localChannelNumber)`
| 6 | `52` |  | `{`
| 6 | `53` |  | `DataTypeCode = dataTypeCode;`
| 6 | `54` |  | `Data = data;`
| 6 | `55` |  | `}`
|  | `56` |  | ``
|  | `57` |  | `/// <summary>`
|  | `58` |  | `/// Loads the data.`
|  | `59` |  | `/// </summary>`
|  | `60` |  | `protected override void LoadData()`
| 40 | `61` |  | `{`
| 40 | `62` |  | `base.LoadData();`
| 40 | `63` |  | `DataTypeCode = ReadUInt32();`
| 40 | `64` |  | `Data = ReadBinary();`
| 40 | `65` |  | `}`
|  | `66` |  | ``
|  | `67` |  | `/// <summary>`
|  | `68` |  | `/// Saves the data.`
|  | `69` |  | `/// </summary>`
|  | `70` |  | `protected override void SaveData()`
| 0 | `71` |  | `{`
| 0 | `72` |  | `base.SaveData();`
| 0 | `73` |  | `Write(DataTypeCode);`
| 0 | `74` |  | `WriteBinaryString(Data);`
| 0 | `75` |  | `}`
|  | `76` |  | ``
|  | `77` |  | `internal override void Process(Session session)`
| 40 | `78` |  | `{`
| 40 | `79` |  | `session.OnChannelExtendedDataReceived(this);`
| 40 | `80` |  | `}`
|  | `81` |  | `}`
|  | `82` |  | `}`

# Methods/Properties

get_DataTypeCode()
get_Data()
get_BufferCapacity()
.ctor()
.ctor(System.UInt32,System.UInt32,System.Byte[])
LoadData()
SaveData()
Process(Renci.SshNet.Session)