ReadVariableInt() public static méthode

Read a 7-bit or 31-bit value.
public static ReadVariableInt ( Stream Stream ) : int
Stream Stream
Résultat int
Exemple #1
0
 public void ParseParamsStream()
 {
     Params = new Dictionary <string, string>();
     ParamsStream.Position = 0;
     while (!ParamsStream.Eof())
     {
         var Key   = new byte[FastcgiPacketReader.ReadVariableInt(ParamsStream)];
         var Value = new byte[FastcgiPacketReader.ReadVariableInt(ParamsStream)];
         ParamsStream.Read(Key, 0, Key.Length);
         ParamsStream.Read(Value, 0, Value.Length);
         Params[Encoding.ASCII.GetString(Key)] = Encoding.ASCII.GetString(Value);
     }
     ParamsStream = new FascgiRequestInputStream();
 }