Home > Net >  Converts a string trill Protobuf data
Converts a string trill Protobuf data

Time:09-24

Access to the raw data is currently

I gave him my web analytics software, automatic identification data is this,


I don't know what to do in c # is converted into the same data and web analytics, ask for advice

CodePudding user response:

Transform coding format?

CodePudding user response:

Protobuf inside before and after each attribute need to sign some agreement, if you want to extract the inside of a property need each other to provide you the middle of the Protobuf file, which is defined protocol document, can search the Protobuf's detail using c #,

CodePudding user response:

refer to the second floor: yuanmou response:
Protobuf inside before and after each attribute need to sign some agreement, if you want to extract the inside of a property is provided to you the middle of the Protobuf file, need each other is also define the file of the agreement, can search in detail under the Protobuf using c #,

I know need data template of the prototype, but the web analytics tool, he could not have model of each web site have, how did he do it correctly parse?

CodePudding user response:

reference binbin846 reply: 3/f
Quote: refer to the second floor: yuanmou response:

Protobuf inside before and after each attribute need to sign some agreement, if you want to extract the inside of a property is provided to you, in the middle of the Protobuf file need each other, is also define the file of the agreement, can search the Protobuf's detail using c #,

I know need data template of the prototype, but the web analytics tool, he could not have model of each web site have, how did he do it correctly parse,
your use of this web page analysis tool can be support protobuf protocol, protobuf agreement like JSON, this tool can display the protocol format of the structure can be convenient for you to see

CodePudding user response:

Deserialization went, the premise is to clear the order of the attributes in a serialized object,

CodePudding user response:

references: yuanmou of 4th floor response:
Quote: refer to the third floor binbin846 response:

Quote: refer to the second floor: yuanmou response:

Protobuf inside before and after each attribute need to sign some agreement, if you want to extract the inside of a property is provided to you, in the middle of the Protobuf file need each other, is also define the file of the agreement, can search the Protobuf's detail using c #,

I need know data template of the prototype, but the web analytics tool, he could not every site model, analytical? How did he do it right,
your use of this web page analysis tool can be support protobuf protocol, protobuf agreement like JSON, this tool can display the protocol format convenient structure allows you to view the

Yes, so I would like to know how to format in c #,

CodePudding user response:

refer to 6th floor binbin846 response:
Quote: refer to 4th floor: yuanmou response:

Quote: refer to the third floor binbin846 response:

Quote: refer to the second floor: yuanmou response:

Protobuf inside before and after each attribute need to sign some agreement, if you want to extract the inside of a property is provided to you, in the middle of the Protobuf file need each other, is also define the file of the agreement, can search the Protobuf's detail using c #,

I need know data template of the prototype, but the web analytics tool, he could not every site model, analytical? How did he do it right,
your use of this web page analysis tool can be support protobuf protocol, protobuf agreement like JSON, this tool can display the protocol format convenient structure allows you to view the

Yes, so I would like to know how to format in c #,
I don't know how to format, can't help you, I will only how to use Protobuf, to format words have to know about Protobuf source code,

CodePudding user response:

A lot of people don't know in which said the world Protobuf,
Protobuf is you write a Proto file, use the standard protocol (gRPC) communication protocol, each platform has automatic code generator, you just have a Proto file, as to why this is surely because this tool can parse the trill data read the trill documents found Proto file, and then can parse,

CodePudding user response:

refer to the eighth floor non-professional development Five replies:
a lot of people don't know in which said the world Protobuf,
Protobuf is you write a Proto file, use the standard protocol (gRPC) communication protocol, each platform has automatic code generator, you just have a Proto file, as to why this is surely because this tool can parse the trill data read the trill documents found Proto file, and then can parse,

Tool, it is not against trill, python mitmproxy middlemen, certainly there can be no file, probably other methods, I'll find another other way,

CodePudding user response:

//reference
Using System.IO.Com pression.
//unzip
GZipStream
//unzip instance
.
HttpWebResponse httpRequest=(HttpWebResponse) httpLogin. The method GetResponse ();
The Stream HttpResStream=httpRequest. GetResponseStream ();
GZipStream gzip=new GZipStream (HttpResStream, CompressionMode. Decompress);
//after decompression of the string information parsing
While ((len=gzip. Read (0 bytes, bytes. The Length)) & gt; 0)
{
The line=System. Text. Encoding. The Default. Get string (bytes);
}
  •  Tags:  
  • C #
  • Related