20 #include <freerdp/config.h>
22 #include <winpr/crt.h>
23 #include <winpr/assert.h>
24 #include <winpr/stream.h>
25 #include <freerdp/channels/log.h>
27 #define TAG CHANNELS_TAG("gfxredir.common")
29 #include "gfxredir_common.h"
39 if (!Stream_CheckAndLogRequiredLength(TAG, s, 8))
40 return ERROR_INVALID_DATA;
42 Stream_Read_UINT32(s, header->cmdId);
43 Stream_Read_UINT32(s, header->length);
55 Stream_Write_UINT32(s, header->cmdId);
56 Stream_Write_UINT32(s, header->length);