Method | Description | |
---|---|---|
AmfEncoder ( |
Constructor.
|
|
IsContentTypeSupported ( string contentType ) : bool |
Returns a value that indicates whether a specified message-level content-type value is supported by the message encoder.
|
|
ReadMessage ( ArraySegment |
Reads a message from a specified buffer.
|
|
ReadMessage ( Stream stream, int maxSizeOfHeaders, string contentType ) : Message |
Reads a message from a specified stream. An actual deserialization is performed rigth here. |
|
WriteMessage ( Message message, int maxMessageSize, System.ServiceModel.Channels.BufferManager bufferManager, int messageOffset ) : ArraySegment |
Writes a message of less than a specified size to a byte array buffer at the specified offset.
|
|
WriteMessage ( Message message, Stream stream ) : void |
Writes a message to a specified stream. An actual serialization is performed rigth here. |
public AmfEncoder ( |
||
encodingOptions | AMF encoding options. | |
return | System |
public IsContentTypeSupported ( string contentType ) : bool | ||
contentType | string | The message-level content-type being tested. |
return | bool |
public ReadMessage ( ArraySegment |
||
buffer | ArraySegment |
Buffer from which the message is deserialized. |
bufferManager | System.ServiceModel.Channels.BufferManager | BufferManager that manages the buffer from which the message is deserialized. |
contentType | string | The Multipurpose Internet Mail Extensions (MIME) message-level content-type. |
return | Message |
public ReadMessage ( Stream stream, int maxSizeOfHeaders, string contentType ) : Message | ||
stream | Stream | Stream object from which the message is read. |
maxSizeOfHeaders | int | The maximum size of the headers that can be read from the message. |
contentType | string | The Multipurpose Internet Mail Extensions (MIME) message-level content-type. |
return | Message |
public WriteMessage ( Message message, int maxMessageSize, System.ServiceModel.Channels.BufferManager bufferManager, int messageOffset ) : ArraySegment |
||
message | Message | The Message to write to the message buffer. |
maxMessageSize | int | The maximum message size that can be written. |
bufferManager | System.ServiceModel.Channels.BufferManager | The BufferManager that manages the buffer to which the message is written. |
messageOffset | int | The offset of the segment that begins from the start of the byte array that provides the buffer. |
return | ArraySegment |
public WriteMessage ( Message message, Stream stream ) : void | ||
message | Message | The Message to write to the stream. |
stream | Stream | The Stream object to which the message is written. |
return | void |