2.2.5.4.1 Set Allocator Properties Message (SET_ALLOCATOR)

The SET_ALLOCATOR message MAY<2> be sent from the server to the client to set buffer allocation properties for a stream. For more information about allocators, see [MSDN-ALLOCATOR].


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

Header (variable)

...

PresentationId (16 bytes)

...

...

StreamId

cBuffers

cbBuffer

cbAlign

cbPrefix

Header (variable): The common message header (as specified in section 2.2.1). The InterfaceId field MUST be set to 0x00000000. The Mask field MUST be set to STREAM_ID_PROXY. The FunctionId field MUST be set to SET_ALLOCATOR (0x00000112).

PresentationId (16 bytes): A 16-byte GUID that identifies the presentation.

StreamId (4 bytes): A 32-bit unsigned integer that identifies the stream ID.

cBuffers (4 bytes): A 32-bit unsigned integer that indicates the number of buffers created by the allocator.

cbBuffer (4 bytes): A 32-bit unsigned integer that indicates the size of each buffer, in bytes, excluding any prefix.

cbAlign (4 bytes): A 32-bit unsigned integer that indicates the alignment of the buffer. The buffer start MUST be aligned on a multiple of this value.

cbPrefix (4 bytes): A 32-bit unsigned integer that indicates that each buffer is preceded by a prefix of this many bytes.