2.2.2.7 RDPGFX_CACHE_TO_SURFACE_PDU

The RDPGFX_CACHE_TO_SURFACE_PDU message is used to instruct the client to copy bitmap data from the bitmap cache to a destination surface.


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

...

cacheSlot

surfaceId

destPtsCount

destPts (variable)

...

...

header (8 bytes):  An RDPGFX_HEADER (section 2.2.1.5) structure. The cmdId field MUST be set to RDPGFX_CMDID_CACHETOSURFACE (0x0007), while the flags field MUST be set to zero.

cacheSlot (2 bytes):  A 16-bit unsigned integer that specifies the index of the bitmap cache entry that contains the source bitmap. The value of this field is constrained as specified in section 3.3.1.4.

surfaceId (2 bytes):  A 16-bit unsigned integer that specifies the ID of the destination surface.

destPtsCount (2 bytes):  A 16-bit unsigned integer that specifies the number of RDPGFX_POINT16 (section 2.2.1.1) structures in the destPts field.

destPts (variable):  A variable-length array of RDPGFX_POINT16 structures that specifies target points on the destination surface to which to copy the source bitmap. The number of structures in this array is specified by the destPtsCount field.