20 #include <freerdp/config.h>
22 #include <winpr/crt.h>
23 #include <winpr/stream.h>
24 #include <freerdp/channels/log.h>
26 #define TAG CHANNELS_TAG("disp.common")
28 #include "disp_common.h"
37 if (!Stream_CheckAndLogRequiredLength(TAG, s, 8))
38 return ERROR_INVALID_DATA;
40 Stream_Read_UINT32(s, header->type);
41 Stream_Read_UINT32(s, header->length);
52 Stream_Write_UINT32(s, header->type);
53 Stream_Write_UINT32(s, header->length);