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