Extract control event string serialization
Extract control event string serialization

A string is serialized as a length (2 bytes) followed by the string data
(non nul-terminated).

For now, it is used only once, but we will need to serialize strings in
other events.

Genymobile/scrcpy,Genymobile/scrcpy,Genymobile/scrcpy