예제 #1
0
 public void Encode(Bencoder file)
 {
     if (len_ == 0)
     {
         file.WriteInt(0);
         file.WriteChar(':');
     }
     else
     {
         file.WriteInt(len_);
         file.WriteChar(':');
         file.WriteBytes(org_, org_.Length);
     }
 }
예제 #2
0
 public void Encode(Bencoder file)
 {
     file.WriteChar('i');
     file.WriteInt(value_);
     file.WriteChar('e');
 }