Proton DotNet
Public Member Functions | Properties | List of all members
Apache.Qpid.Proton.Codec.IEncoder Interface Reference

Defines an Encoder type that translates AMQP performatives into their encoded byte representations. More...

Inheritance diagram for Apache.Qpid.Proton.Codec.IEncoder:
Apache.Qpid.Proton.Codec.Encoders.ProtonEncoder

Public Member Functions

IEncoderState NewEncoderState ()
 Creates and returns a new encoder state object that should be used when encoding values with the encoder instance. More...
 
void WriteNull (IProtonBuffer buffer, IEncoderState state)
 Write the indicated AMQP null type encoding into the buffer instance. More...
 
void WriteBoolean (IProtonBuffer buffer, IEncoderState state, bool value)
 Writes the AMQP boolean encoding for the given value to the given buffer. More...
 
void WriteUnsignedByte (IProtonBuffer buffer, IEncoderState state, byte value)
 Writes the AMQP unsigned byte encoding for the given value to the given buffer. More...
 
void WriteUnsignedShort (IProtonBuffer buffer, IEncoderState state, ushort value)
 Writes the AMQP unsigned short encoding for the given value to the given buffer. More...
 
void WriteUnsignedInteger (IProtonBuffer buffer, IEncoderState state, uint value)
 Writes the AMQP unsigned int encoding for the given value to the given buffer. More...
 
void WriteUnsignedLong (IProtonBuffer buffer, IEncoderState state, ulong value)
 Writes the AMQP unsigned long encoding for the given value to the given buffer. More...
 
void WriteByte (IProtonBuffer buffer, IEncoderState state, sbyte value)
 Writes the AMQP byte encoding for the given value to the given buffer. More...
 
void WriteShort (IProtonBuffer buffer, IEncoderState state, short value)
 Writes the AMQP short encoding for the given value to the given buffer. More...
 
void WriteInteger (IProtonBuffer buffer, IEncoderState state, int value)
 Writes the AMQP integer encoding for the given value to the given buffer. More...
 
void WriteLong (IProtonBuffer buffer, IEncoderState state, long value)
 Writes the AMQP long encoding for the given value to the given buffer. More...
 
void WriteFloat (IProtonBuffer buffer, IEncoderState state, float value)
 Writes the AMQP float encoding for the given value to the given buffer. More...
 
void WriteDouble (IProtonBuffer buffer, IEncoderState state, double value)
 Writes the AMQP double encoding for the given value to the given buffer. More...
 
void WriteDecimal32 (IProtonBuffer buffer, IEncoderState state, Decimal32 value)
 Writes the AMQP Decimal32 encoding for the given value to the given buffer. More...
 
void WriteDecimal64 (IProtonBuffer buffer, IEncoderState state, Decimal64 value)
 Writes the AMQP Decimal64 encoding for the given value to the given buffer. More...
 
void WriteDecimal128 (IProtonBuffer buffer, IEncoderState state, Decimal128 value)
 Writes the AMQP Decimal128 encoding for the given value to the given buffer. More...
 
void WriteCharacter (IProtonBuffer buffer, IEncoderState state, char value)
 Writes the AMQP Character encoding for the given value to the given buffer. More...
 
void WriteTimestamp (IProtonBuffer buffer, IEncoderState state, long value)
 Writes the AMQP Timestamp encoding for the given value to the given buffer. More...
 
void WriteTimestamp (IProtonBuffer buffer, IEncoderState state, ulong value)
 Writes the AMQP Timestamp encoding for the given value to the given buffer. More...
 
void WriteGuid (IProtonBuffer buffer, IEncoderState state, Guid value)
 Writes the AMQP UUID encoding for the given value to the given buffer. More...
 
void WriteBinary (IProtonBuffer buffer, IEncoderState state, byte[] value)
 Writes the AMQP Binary encoding for the given value to the given buffer. More...
 
void WriteBinary (IProtonBuffer buffer, IEncoderState state, IProtonBuffer value)
 Writes the AMQP Binary encoding for the given value to the given buffer. More...
 
void WriteString (IProtonBuffer buffer, IEncoderState state, string value)
 Writes the AMQP string encoding for the given value to the given buffer. More...
 
void WriteSymbol (IProtonBuffer buffer, IEncoderState state, Symbol value)
 Writes the AMQP Symbol encoding for the given value to the given buffer. More...
 
void WriteSymbol (IProtonBuffer buffer, IEncoderState state, string value)
 Writes the AMQP Symbol encoding for the given value to the given buffer. More...
 
void WriteList (IProtonBuffer buffer, IEncoderState state, IList value)
 Writes the AMQP List encoding for the given value to the given buffer. More...
 
void WriteList< T > (IProtonBuffer buffer, IEncoderState state, IList< T > value)
 Writes the AMQP List encoding for the given value to the given buffer. More...
 
void WriteMap (IProtonBuffer buffer, IEncoderState state, IDictionary value)
 Writes the AMQP Map encoding for the given value to the given buffer. More...
 
void WriteMap< K, V > (IProtonBuffer buffer, IEncoderState state, IDictionary< K, V > value)
 Writes the AMQP Map encoding for the given value to the given buffer. More...
 
void WriteMap< K, V > (IProtonBuffer buffer, IEncoderState state, IReadOnlyDictionary< K, V > value)
 Writes the AMQP Map encoding for the given value to the given buffer. More...
 
void WriteDeliveryTag (IProtonBuffer buffer, IEncoderState state, IDeliveryTag value)
 Writes the contents of the given IDeliveryTag value into the provided proton buffer instance as an AMQP Binary type. More...
 
void WriteDescribedType (IProtonBuffer buffer, IEncoderState state, IDescribedType value)
 Writes the AMQP Described Type encoding for the given value to the given buffer. More...
 
void WriteObject (IProtonBuffer buffer, IEncoderState state, object value)
 Writes the AMQP encoding for the given value to the given buffer. More...
 
void WriteArray (IProtonBuffer buffer, IEncoderState state, Array value)
 Writes the AMQP array encoding for the given value to the given buffer. More...
 
IEncoder RegisterDescribedTypeEncoder (IDescribedTypeEncoder encoder)
 Allows registration of the given AMQP type encoder into this encoder to customize the writing of the Type managed by the encoder. More...
 
ITypeEncoder LookupTypeEncoder (object value)
 Lookup a Type encoder using an instance of the type to be encoded. More...
 
ITypeEncoder LookupTypeEncoder (Type typeClass)
 Lookup a Type encoder using Type value of the type to be encoded. More...
 

Properties

IEncoderState CachedEncoderState [get]
 Returns an encoder state instance that lives with this encoder instance. The cached encoder state should be used with this encoder and only by a single thread at a time. More...
 

Detailed Description

Defines an Encoder type that translates AMQP performatives into their encoded byte representations.

Member Function Documentation

◆ LookupTypeEncoder() [1/2]

ITypeEncoder Apache.Qpid.Proton.Codec.IEncoder.LookupTypeEncoder ( object  value)

Lookup a Type encoder using an instance of the type to be encoded.

Parameters
valuean instance of the type whose encoder is being looked up
Returns

Implemented in Apache.Qpid.Proton.Codec.Encoders.ProtonEncoder.

◆ LookupTypeEncoder() [2/2]

ITypeEncoder Apache.Qpid.Proton.Codec.IEncoder.LookupTypeEncoder ( Type  typeClass)

Lookup a Type encoder using Type value of the type to be encoded.

Parameters
valuea Type instance for the type whose encoder is being looked up
Returns

Implemented in Apache.Qpid.Proton.Codec.Encoders.ProtonEncoder.

◆ NewEncoderState()

IEncoderState Apache.Qpid.Proton.Codec.IEncoder.NewEncoderState ( )

Creates and returns a new encoder state object that should be used when encoding values with the encoder instance.

Returns
A new encoder state instance.

Implemented in Apache.Qpid.Proton.Codec.Encoders.ProtonEncoder.

◆ RegisterDescribedTypeEncoder()

IEncoder Apache.Qpid.Proton.Codec.IEncoder.RegisterDescribedTypeEncoder ( IDescribedTypeEncoder  encoder)

Allows registration of the given AMQP type encoder into this encoder to customize the writing of the Type managed by the encoder.

Parameters
encoderThe encoder type instance to register with this encoder
Returns
This encoder instance

Implemented in Apache.Qpid.Proton.Codec.Encoders.ProtonEncoder.

◆ WriteArray()

void Apache.Qpid.Proton.Codec.IEncoder.WriteArray ( IProtonBuffer  buffer,
IEncoderState  state,
Array  value 
)

Writes the AMQP array encoding for the given value to the given buffer.

Parameters
bufferThe buffer to write the value encoding to
stateAn encoder state instance to use when encoding
valueThe value to be written
Exceptions
EncodeExceptionIf an error occurs during the encode operation

Implemented in Apache.Qpid.Proton.Codec.Encoders.ProtonEncoder.

◆ WriteBinary() [1/2]

void Apache.Qpid.Proton.Codec.IEncoder.WriteBinary ( IProtonBuffer  buffer,
IEncoderState  state,
byte[]  value 
)

Writes the AMQP Binary encoding for the given value to the given buffer.

Parameters
bufferThe buffer to write the value encoding to
stateAn encoder state instance to use when encoding
valueThe value to be written
Exceptions
EncodeExceptionIf an error occurs during the encode operation

Implemented in Apache.Qpid.Proton.Codec.Encoders.ProtonEncoder.

◆ WriteBinary() [2/2]

void Apache.Qpid.Proton.Codec.IEncoder.WriteBinary ( IProtonBuffer  buffer,
IEncoderState  state,
IProtonBuffer  value 
)

Writes the AMQP Binary encoding for the given value to the given buffer.

Parameters
bufferThe buffer to write the value encoding to
stateAn encoder state instance to use when encoding
valueThe value to be written
Exceptions
EncodeExceptionIf an error occurs during the encode operation

Implemented in Apache.Qpid.Proton.Codec.Encoders.ProtonEncoder.

◆ WriteBoolean()

void Apache.Qpid.Proton.Codec.IEncoder.WriteBoolean ( IProtonBuffer  buffer,
IEncoderState  state,
bool  value 
)

Writes the AMQP boolean encoding for the given value to the given buffer.

Parameters
bufferThe buffer to write the value encoding to
stateAn encoder state instance to use when encoding
valueThe value to be written
Exceptions
EncodeExceptionIf an error occurs during the encode operation

Implemented in Apache.Qpid.Proton.Codec.Encoders.ProtonEncoder.

◆ WriteByte()

void Apache.Qpid.Proton.Codec.IEncoder.WriteByte ( IProtonBuffer  buffer,
IEncoderState  state,
sbyte  value 
)

Writes the AMQP byte encoding for the given value to the given buffer.

Parameters
bufferThe buffer to write the value encoding to
stateAn encoder state instance to use when encoding
valueThe value to be written
Exceptions
EncodeExceptionIf an error occurs during the encode operation

Implemented in Apache.Qpid.Proton.Codec.Encoders.ProtonEncoder.

◆ WriteCharacter()

void Apache.Qpid.Proton.Codec.IEncoder.WriteCharacter ( IProtonBuffer  buffer,
IEncoderState  state,
char  value 
)

Writes the AMQP Character encoding for the given value to the given buffer.

Parameters
bufferThe buffer to write the value encoding to
stateAn encoder state instance to use when encoding
valueThe value to be written
Exceptions
EncodeExceptionIf an error occurs during the encode operation

Implemented in Apache.Qpid.Proton.Codec.Encoders.ProtonEncoder.

◆ WriteDecimal128()

void Apache.Qpid.Proton.Codec.IEncoder.WriteDecimal128 ( IProtonBuffer  buffer,
IEncoderState  state,
Decimal128  value 
)

Writes the AMQP Decimal128 encoding for the given value to the given buffer.

Parameters
bufferThe buffer to write the value encoding to
stateAn encoder state instance to use when encoding
valueThe value to be written
Exceptions
EncodeExceptionIf an error occurs during the encode operation

Implemented in Apache.Qpid.Proton.Codec.Encoders.ProtonEncoder.

◆ WriteDecimal32()

void Apache.Qpid.Proton.Codec.IEncoder.WriteDecimal32 ( IProtonBuffer  buffer,
IEncoderState  state,
Decimal32  value 
)

Writes the AMQP Decimal32 encoding for the given value to the given buffer.

Parameters
bufferThe buffer to write the value encoding to
stateAn encoder state instance to use when encoding
valueThe value to be written
Exceptions
EncodeExceptionIf an error occurs during the encode operation

Implemented in Apache.Qpid.Proton.Codec.Encoders.ProtonEncoder.

◆ WriteDecimal64()

void Apache.Qpid.Proton.Codec.IEncoder.WriteDecimal64 ( IProtonBuffer  buffer,
IEncoderState  state,
Decimal64  value 
)

Writes the AMQP Decimal64 encoding for the given value to the given buffer.

Parameters
bufferThe buffer to write the value encoding to
stateAn encoder state instance to use when encoding
valueThe value to be written
Exceptions
EncodeExceptionIf an error occurs during the encode operation

Implemented in Apache.Qpid.Proton.Codec.Encoders.ProtonEncoder.

◆ WriteDeliveryTag()

void Apache.Qpid.Proton.Codec.IEncoder.WriteDeliveryTag ( IProtonBuffer  buffer,
IEncoderState  state,
IDeliveryTag  value 
)

Writes the contents of the given IDeliveryTag value into the provided proton buffer instance as an AMQP Binary type.

Parameters
bufferThe buffer to write the value encoding to
stateAn encoder state instance to use when encoding
valueThe delivery tag to encode as an AMQP Binary
Exceptions
EncodeExceptionIf an error occurs during the encode operation

Implemented in Apache.Qpid.Proton.Codec.Encoders.ProtonEncoder.

◆ WriteDescribedType()

void Apache.Qpid.Proton.Codec.IEncoder.WriteDescribedType ( IProtonBuffer  buffer,
IEncoderState  state,
IDescribedType  value 
)

Writes the AMQP Described Type encoding for the given value to the given buffer.

Parameters
bufferThe buffer to write the value encoding to
stateAn encoder state instance to use when encoding
valueThe value to be written
Exceptions
EncodeExceptionIf an error occurs during the encode operation

Implemented in Apache.Qpid.Proton.Codec.Encoders.ProtonEncoder.

◆ WriteDouble()

void Apache.Qpid.Proton.Codec.IEncoder.WriteDouble ( IProtonBuffer  buffer,
IEncoderState  state,
double  value 
)

Writes the AMQP double encoding for the given value to the given buffer.

Parameters
bufferThe buffer to write the value encoding to
stateAn encoder state instance to use when encoding
valueThe value to be written
Exceptions
EncodeExceptionIf an error occurs during the encode operation

Implemented in Apache.Qpid.Proton.Codec.Encoders.ProtonEncoder.

◆ WriteFloat()

void Apache.Qpid.Proton.Codec.IEncoder.WriteFloat ( IProtonBuffer  buffer,
IEncoderState  state,
float  value 
)

Writes the AMQP float encoding for the given value to the given buffer.

Parameters
bufferThe buffer to write the value encoding to
stateAn encoder state instance to use when encoding
valueThe value to be written
Exceptions
EncodeExceptionIf an error occurs during the encode operation

Implemented in Apache.Qpid.Proton.Codec.Encoders.ProtonEncoder.

◆ WriteGuid()

void Apache.Qpid.Proton.Codec.IEncoder.WriteGuid ( IProtonBuffer  buffer,
IEncoderState  state,
Guid  value 
)

Writes the AMQP UUID encoding for the given value to the given buffer.

Parameters
bufferThe buffer to write the value encoding to
stateAn encoder state instance to use when encoding
valueThe value to be written
Exceptions
EncodeExceptionIf an error occurs during the encode operation

Implemented in Apache.Qpid.Proton.Codec.Encoders.ProtonEncoder.

◆ WriteInteger()

void Apache.Qpid.Proton.Codec.IEncoder.WriteInteger ( IProtonBuffer  buffer,
IEncoderState  state,
int  value 
)

Writes the AMQP integer encoding for the given value to the given buffer.

Parameters
bufferThe buffer to write the value encoding to
stateAn encoder state instance to use when encoding
valueThe value to be written
Exceptions
EncodeExceptionIf an error occurs during the encode operation

Implemented in Apache.Qpid.Proton.Codec.Encoders.ProtonEncoder.

◆ WriteList()

void Apache.Qpid.Proton.Codec.IEncoder.WriteList ( IProtonBuffer  buffer,
IEncoderState  state,
IList  value 
)

Writes the AMQP List encoding for the given value to the given buffer.

Parameters
bufferThe buffer to write the value encoding to
stateAn encoder state instance to use when encoding
valueThe value to be written
Exceptions
EncodeExceptionIf an error occurs during the encode operation

Implemented in Apache.Qpid.Proton.Codec.Encoders.ProtonEncoder.

◆ WriteList< T >()

void Apache.Qpid.Proton.Codec.IEncoder.WriteList< T > ( IProtonBuffer  buffer,
IEncoderState  state,
IList< T >  value 
)

Writes the AMQP List encoding for the given value to the given buffer.

Parameters
bufferThe buffer to write the value encoding to
stateAn encoder state instance to use when encoding
valueThe value to be written
Exceptions
EncodeExceptionIf an error occurs during the encode operation

Implemented in Apache.Qpid.Proton.Codec.Encoders.ProtonEncoder.

◆ WriteLong()

void Apache.Qpid.Proton.Codec.IEncoder.WriteLong ( IProtonBuffer  buffer,
IEncoderState  state,
long  value 
)

Writes the AMQP long encoding for the given value to the given buffer.

Parameters
bufferThe buffer to write the value encoding to
stateAn encoder state instance to use when encoding
valueThe value to be written
Exceptions
EncodeExceptionIf an error occurs during the encode operation

Implemented in Apache.Qpid.Proton.Codec.Encoders.ProtonEncoder.

◆ WriteMap()

void Apache.Qpid.Proton.Codec.IEncoder.WriteMap ( IProtonBuffer  buffer,
IEncoderState  state,
IDictionary  value 
)

Writes the AMQP Map encoding for the given value to the given buffer.

Parameters
bufferThe buffer to write the value encoding to
stateAn encoder state instance to use when encoding
valueThe value to be written
Exceptions
EncodeExceptionIf an error occurs during the encode operation

Implemented in Apache.Qpid.Proton.Codec.Encoders.ProtonEncoder.

◆ WriteMap< K, V >() [1/2]

void Apache.Qpid.Proton.Codec.IEncoder.WriteMap< K, V > ( IProtonBuffer  buffer,
IEncoderState  state,
IDictionary< K, V >  value 
)

Writes the AMQP Map encoding for the given value to the given buffer.

Parameters
bufferThe buffer to write the value encoding to
stateAn encoder state instance to use when encoding
valueThe value to be written
Exceptions
EncodeExceptionIf an error occurs during the encode operation

Implemented in Apache.Qpid.Proton.Codec.Encoders.ProtonEncoder.

◆ WriteMap< K, V >() [2/2]

void Apache.Qpid.Proton.Codec.IEncoder.WriteMap< K, V > ( IProtonBuffer  buffer,
IEncoderState  state,
IReadOnlyDictionary< K, V >  value 
)

Writes the AMQP Map encoding for the given value to the given buffer.

Parameters
bufferThe buffer to write the value encoding to
stateAn encoder state instance to use when encoding
valueThe value to be written
Exceptions
EncodeExceptionIf an error occurs during the encode operation

Implemented in Apache.Qpid.Proton.Codec.Encoders.ProtonEncoder.

◆ WriteNull()

void Apache.Qpid.Proton.Codec.IEncoder.WriteNull ( IProtonBuffer  buffer,
IEncoderState  state 
)

Write the indicated AMQP null type encoding into the buffer instance.

Parameters
bufferThe buffer to write the value encoding to
stateAn encoder state instance to use when encoding
Exceptions
EncodeExceptionIf an error occurs during the encode operation

Implemented in Apache.Qpid.Proton.Codec.Encoders.ProtonEncoder.

◆ WriteObject()

void Apache.Qpid.Proton.Codec.IEncoder.WriteObject ( IProtonBuffer  buffer,
IEncoderState  state,
object  value 
)

Writes the AMQP encoding for the given value to the given buffer.

Parameters
bufferThe buffer to write the value encoding to
stateAn encoder state instance to use when encoding
valueThe value to be written
Exceptions
EncodeExceptionIf an error occurs during the encode operation

Implemented in Apache.Qpid.Proton.Codec.Encoders.ProtonEncoder.

◆ WriteShort()

void Apache.Qpid.Proton.Codec.IEncoder.WriteShort ( IProtonBuffer  buffer,
IEncoderState  state,
short  value 
)

Writes the AMQP short encoding for the given value to the given buffer.

Parameters
bufferThe buffer to write the value encoding to
stateAn encoder state instance to use when encoding
valueThe value to be written
Exceptions
EncodeExceptionIf an error occurs during the encode operation

Implemented in Apache.Qpid.Proton.Codec.Encoders.ProtonEncoder.

◆ WriteString()

void Apache.Qpid.Proton.Codec.IEncoder.WriteString ( IProtonBuffer  buffer,
IEncoderState  state,
string  value 
)

Writes the AMQP string encoding for the given value to the given buffer.

Parameters
bufferThe buffer to write the value encoding to
stateAn encoder state instance to use when encoding
valueThe value to be written
Exceptions
EncodeExceptionIf an error occurs during the encode operation

Implemented in Apache.Qpid.Proton.Codec.Encoders.ProtonEncoder.

◆ WriteSymbol() [1/2]

void Apache.Qpid.Proton.Codec.IEncoder.WriteSymbol ( IProtonBuffer  buffer,
IEncoderState  state,
string  value 
)

Writes the AMQP Symbol encoding for the given value to the given buffer.

Parameters
bufferThe buffer to write the value encoding to
stateAn encoder state instance to use when encoding
valueThe value to be written
Exceptions
EncodeExceptionIf an error occurs during the encode operation

Implemented in Apache.Qpid.Proton.Codec.Encoders.ProtonEncoder.

◆ WriteSymbol() [2/2]

void Apache.Qpid.Proton.Codec.IEncoder.WriteSymbol ( IProtonBuffer  buffer,
IEncoderState  state,
Symbol  value 
)

Writes the AMQP Symbol encoding for the given value to the given buffer.

Parameters
bufferThe buffer to write the value encoding to
stateAn encoder state instance to use when encoding
valueThe value to be written
Exceptions
EncodeExceptionIf an error occurs during the encode operation

Implemented in Apache.Qpid.Proton.Codec.Encoders.ProtonEncoder.

◆ WriteTimestamp() [1/2]

void Apache.Qpid.Proton.Codec.IEncoder.WriteTimestamp ( IProtonBuffer  buffer,
IEncoderState  state,
long  value 
)

Writes the AMQP Timestamp encoding for the given value to the given buffer.

Parameters
bufferThe buffer to write the value encoding to
stateAn encoder state instance to use when encoding
valueThe value to be written
Exceptions
EncodeExceptionIf an error occurs during the encode operation

Implemented in Apache.Qpid.Proton.Codec.Encoders.ProtonEncoder.

◆ WriteTimestamp() [2/2]

void Apache.Qpid.Proton.Codec.IEncoder.WriteTimestamp ( IProtonBuffer  buffer,
IEncoderState  state,
ulong  value 
)

Writes the AMQP Timestamp encoding for the given value to the given buffer.

Parameters
bufferThe buffer to write the value encoding to
stateAn encoder state instance to use when encoding
valueThe value to be written
Exceptions
EncodeExceptionIf an error occurs during the encode operation

Implemented in Apache.Qpid.Proton.Codec.Encoders.ProtonEncoder.

◆ WriteUnsignedByte()

void Apache.Qpid.Proton.Codec.IEncoder.WriteUnsignedByte ( IProtonBuffer  buffer,
IEncoderState  state,
byte  value 
)

Writes the AMQP unsigned byte encoding for the given value to the given buffer.

Parameters
bufferThe buffer to write the value encoding to
stateAn encoder state instance to use when encoding
valueThe value to be written
Exceptions
EncodeExceptionIf an error occurs during the encode operation

Implemented in Apache.Qpid.Proton.Codec.Encoders.ProtonEncoder.

◆ WriteUnsignedInteger()

void Apache.Qpid.Proton.Codec.IEncoder.WriteUnsignedInteger ( IProtonBuffer  buffer,
IEncoderState  state,
uint  value 
)

Writes the AMQP unsigned int encoding for the given value to the given buffer.

Parameters
bufferThe buffer to write the value encoding to
stateAn encoder state instance to use when encoding
valueThe value to be written
Exceptions
EncodeExceptionIf an error occurs during the encode operation

Implemented in Apache.Qpid.Proton.Codec.Encoders.ProtonEncoder.

◆ WriteUnsignedLong()

void Apache.Qpid.Proton.Codec.IEncoder.WriteUnsignedLong ( IProtonBuffer  buffer,
IEncoderState  state,
ulong  value 
)

Writes the AMQP unsigned long encoding for the given value to the given buffer.

Parameters
bufferThe buffer to write the value encoding to
stateAn encoder state instance to use when encoding
valueThe value to be written
Exceptions
EncodeExceptionIf an error occurs during the encode operation

Implemented in Apache.Qpid.Proton.Codec.Encoders.ProtonEncoder.

◆ WriteUnsignedShort()

void Apache.Qpid.Proton.Codec.IEncoder.WriteUnsignedShort ( IProtonBuffer  buffer,
IEncoderState  state,
ushort  value 
)

Writes the AMQP unsigned short encoding for the given value to the given buffer.

Parameters
bufferThe buffer to write the value encoding to
stateAn encoder state instance to use when encoding
valueThe value to be written
Exceptions
EncodeExceptionIf an error occurs during the encode operation

Implemented in Apache.Qpid.Proton.Codec.Encoders.ProtonEncoder.

Property Documentation

◆ CachedEncoderState

IEncoderState Apache.Qpid.Proton.Codec.IEncoder.CachedEncoderState
get

Returns an encoder state instance that lives with this encoder instance. The cached encoder state should be used with this encoder and only by a single thread at a time.

Returns
A cached encoder state instance that can be used by single thread writers

The documentation for this interface was generated from the following file: