deserializer.readHeader()


读取并验证标头(包括格式版本)。例如,可以拒绝无效或不受支持的有线格式。在这种情况下,会抛出 Error

¥Reads and validates a header (including the format version). May, for example, reject an invalid or unsupported wire format. In that case, an Error is thrown.