2.2.2.6 RDPGFX_SURFACE_TO_CACHE_PDU

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


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

...

surfaceId

cacheKey

...

...

cacheSlot

rectSrc

...

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

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

cacheKey (8 bytes):  A 64-bit unsigned integer that specifies a key to associate with the bitmap cache entry that will store the bitmap.

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

rectSrc (8 bytes):  An RDPGFX_RECT16 (section 2.2.1.2) structure that specifies the rectangle that bounds the source bitmap.