Show / Hide Table of Contents

# Interface IWireFormat

Represents the marshalling of commands to and from an IO stream

###### Namespace: Apache.NMS.ActiveMQ.Transport

###### Assembly: Apache.NMS.ActiveMQ.dll

##### Syntax

    public interface IWireFormat

### Properties

| Improve this Doc View Source

#### Transport

Gets the Transport that own this WireFormat instnace.

##### Declaration

    ITransport Transport { get; set; }

##### Property Value

Type | Description
--- | ---
ITransport |

| Improve this Doc View Source

#### Version

Gets the current version of the protocol that this WireFormat instance supports

##### Declaration

    int Version { get; }

##### Property Value

Type | Description
--- | ---
System.Int32 |

### Methods

| Improve this Doc View Source

#### Marshal(Object, BinaryWriter)

Marshalls the given command object onto the stream

##### Declaration

    void Marshal(object o, BinaryWriter ds)

##### Parameters

Type | Name | Description
--- | --- | ---
System.Object | o |
System.IO.BinaryWriter | ds |

| Improve this Doc View Source

#### Unmarshal(BinaryReader)

Unmarshalls the next command object from the stream

##### Declaration

    object Unmarshal(BinaryReader dis)

##### Parameters

Type | Name | Description
--- | --- | ---
System.IO.BinaryReader | dis |

##### Returns

Type | Description
--- | ---
System.Object |